Table of Contents

Class EffectView

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

이펙트 Pool 대상 MonoBehaviour. 재생 완료 또는 강제 중단 시 Pool 자동 반환.

public class EffectView : MonoBehaviour, IPoolable
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
EffectView
Implements

Remarks

EffectSystem.Play에서 Pool.Get()으로 획득 후 PlayAndReturn 호출. ParticleSystem 완료 감지는 하위 클래스에서 코루틴/UniTask로 구현 후 ForceStop 호출. [규칙] OnGet/OnRelease는 EffectSystem 내부 Pool이 자동 호출 — 외부 직접 호출 금지.

Methods

ForceStop()

재생 강제 중단 후 Pool 반환. StopAll 또는 씬 전환 시 호출.

public void ForceStop()

OnGet()

풀에서 꺼낼 때 호출. 오브젝트 활성화 및 초기화.

public void OnGet()

OnRelease()

풀에 반환할 때 호출. 오브젝트 비활성화 및 정리.

public void OnRelease()

PlayAndReturn(IObjectPool<EffectView>, Action)

재생 시작 및 Pool 반환 콜백 설정.

public void PlayAndReturn(IObjectPool<EffectView> pool, Action onReturn)

Parameters

pool IObjectPool<EffectView>

반환할 Pool 참조.

onReturn Action

활성 목록에서 제거하는 콜백.