Table of Contents

Interface IEffectSystem

Namespace
Framework.Systems.Effect
Assembly
Assembly-CSharp.dll

VFX/파티클 이펙트 재생/정지 계약. 내부적으로 ObjectPool<EffectView> 사용.

public interface IEffectSystem

Examples

// Scope에서 Pool 등록
_effectSystem.RegisterPool(EffectKeys.Explosion, new ObjectPool<EffectView>(() => ...));

// 재생
_effectSystem.Play(EffectKeys.Explosion, transform.position);

Remarks

이펙트 Pool은 Scope 구성 시 RegisterPool로 등록해야 한다. Play 후 EffectView가 완료 시 자동으로 Pool에 반환된다. [금지] 등록하지 않은 key로 Play 호출 — Error 로그 후 무시.

Methods

Play(string, Vector3, Quaternion)

지정 위치에 이펙트 재생. Pool에서 EffectView를 꺼내 활성화.

void Play(string key, Vector3 position, Quaternion rotation = default)

Parameters

key string

이펙트 키 (EffectKeys 상수 사용).

position Vector3

재생 월드 위치.

rotation Quaternion

재생 회전. 기본값은 Quaternion.identity.

Stop(string)

해당 키의 활성 이펙트 중단.

void Stop(string key)

Parameters

key string

중단할 이펙트 키.

StopAll()

모든 활성 이펙트 강제 중단 및 Pool 반환.

void StopAll()