C# Class SimplePM.PrefabPool

ファイルを表示 Open project: woshihuo12/UnityHello Class Usage Examples

Private Properties

Property Type Description
AddUnpooled void
CoCullDespawned IEnumerator
DespawnInstance bool
DespawnInstance bool
InstanceConstructor void
NameInstance void
PreloadInstances void
PreloadOverTime IEnumerator
SelfDestruct void
SetRecursively void
SpawnInstance UnityEngine.Transform

Public Methods

Method Description
Contains ( Transform tr ) : bool
PrefabPool ( ) : UnityEngine
PrefabPool ( Transform prefab ) : UnityEngine
SpawnNew ( ) : Transform
SpawnNew ( Vector3 pos, Quaternion rot ) : Transform

Private Methods

Method Description
AddUnpooled ( Transform inst, bool despawn ) : void
CoCullDespawned ( ) : IEnumerator
DespawnInstance ( Transform tr ) : bool
DespawnInstance ( Transform tr, bool sendEventMessage ) : bool
InstanceConstructor ( ) : void
NameInstance ( Transform instance ) : void
PreloadInstances ( ) : void
PreloadOverTime ( ) : IEnumerator
SelfDestruct ( ) : void
SetRecursively ( Transform xform, int layer ) : void
SpawnInstance ( Vector3 pos, Quaternion rot ) : Transform

Method Details

Contains() public method

public Contains ( Transform tr ) : bool
tr UnityEngine.Transform
return bool

PrefabPool() public method

public PrefabPool ( ) : UnityEngine
return UnityEngine

PrefabPool() public method

public PrefabPool ( Transform prefab ) : UnityEngine
prefab UnityEngine.Transform
return UnityEngine

SpawnNew() public method

public SpawnNew ( ) : Transform
return UnityEngine.Transform

SpawnNew() public method

public SpawnNew ( Vector3 pos, Quaternion rot ) : Transform
pos UnityEngine.Vector3
rot UnityEngine.Quaternion
return UnityEngine.Transform