Class System_TrackComponentObject<TObject, TCache>
Inheritance
ComponentSystemBase
SystemBase
System_TrackComponentObject<TObject, TCache>
Inherited Members
SystemBase.Dependency
SystemBase.CheckedStateRef
SystemBase.CompleteDependency()
SystemBase.Entities
SystemBase.Job
SystemBase.Update()
SystemBase.GetComponent<T>(Entity)
SystemBase.SetComponent<T>(Entity, T)
SystemBase.HasComponent<T>(Entity)
SystemBase.HasBuffer<T>(Entity)
SystemBase.GetEntityStorageInfoLookup()
SystemBase.GetStorageInfoFromEntity()
SystemBase.Exists(Entity)
ComponentSystemBase.Enabled
ComponentSystemBase.EntityQueries
ComponentSystemBase.GlobalSystemVersion
ComponentSystemBase.LastSystemVersion
ComponentSystemBase.EntityManager
ComponentSystemBase.World
ComponentSystemBase.SystemHandle
ComponentSystemBase.SystemHandleUntyped
ComponentSystemBase.Time
ComponentSystemBase.WorldUpdateAllocator
ComponentSystemBase.OnStartRunning()
ComponentSystemBase.OnStopRunning()
ComponentSystemBase.OnDestroy()
ComponentSystemBase.ShouldRunSystem()
ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
ComponentSystemBase.GetSharedComponentTypeHandle<T>()
ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
ComponentSystemBase.GetEntityTypeHandle()
ComponentSystemBase.RequireForUpdate(EntityQuery)
ComponentSystemBase.RequireAnyForUpdate(params EntityQuery[])
ComponentSystemBase.RequireAnyForUpdate(NativeArray<EntityQuery>)
ComponentSystemBase.RequireForUpdate<T>()
ComponentSystemBase.RequireSingletonForUpdate<T>()
ComponentSystemBase.HasSingleton<T>()
ComponentSystemBase.GetSingleton<T>()
ComponentSystemBase.GetSingletonRW<T>()
ComponentSystemBase.TryGetSingleton<T>(out T)
ComponentSystemBase.TryGetSingletonBuffer<T>(out DynamicBuffer<T>)
ComponentSystemBase.SetSingleton<T>(T)
ComponentSystemBase.GetSingletonEntity<T>()
ComponentSystemBase.TryGetSingletonEntity<T>(out Entity)
ComponentSystemBase.GetEntityQuery(params ComponentType[])
ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
ComponentSystemBase.GetEntityQuery(params EntityQueryDesc[])
ComponentSystemBase.GetEntityQuery(in EntityQueryBuilder)
Assembly: fwt.core.ecs.dll
Syntax
public abstract class System_TrackComponentObject<TObject, TCache> : SystemBase where TObject : Object where TCache : unmanaged, ICleanupComponentData
Type Parameters
| Name |
Description |
| TObject |
|
| TCache |
|
Fields
IsDestroyObjectWithEntity
Declaration
public bool IsDestroyObjectWithEntity
Field Value
IsSendRemoveObjectsToPool
If true, system will try to send released objects to game objects pool
instead of destroying them.
If sending to pool failed, system destroys game object
Declaration
public bool IsSendRemoveObjectsToPool
Field Value
PoolExclusions
Entities in this hash set will remove their Views with opposite rule than we have by IsSendRemoveObjectsToPool
Declaration
protected HashSet<Entity> PoolExclusions
Field Value
_cachedItems
Declaration
protected Dictionary<Entity, TObject> _cachedItems
Field Value
_removedEntities
Declaration
protected EntityQuery _removedEntities
Field Value
| Type |
Description |
| EntityQuery |
|
_removedObjects
Declaration
protected List<Entity> _removedObjects
Field Value
| Type |
Description |
| List<Entity> |
|
Properties
IsDestroyComponentGameObject
Declaration
public virtual bool IsDestroyComponentGameObject { get; }
Property Value
PoolSystem
Declaration
public ObjectPoolSystem_GameObject PoolSystem { get; }
Property Value
Methods
AttachObjectToEntity(Entity, TObject)
Declaration
public virtual void AttachObjectToEntity(Entity entity, TObject obj)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| TObject |
obj |
|
AttachObjectToEntityInversePolicy(Entity, TObject)
Works like AttachObjectToEntity, but alters cleanup behaviour for this entity.
If we have IsSendRemoveObjectsToPool == true, this particular entity will ignore it.
If IsSendRemoveObjectsToPool, this particular entity will send object to pool, despite general system setup
Declaration
public virtual void AttachObjectToEntityInversePolicy(Entity entity, TObject obj)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| TObject |
obj |
|
DestroyCachedObject(Entity)
Declaration
protected virtual void DestroyCachedObject(Entity entity)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
DestroyCachedObject(TObject, bool)
Declaration
protected virtual void DestroyCachedObject(TObject obj, bool inverseSendRemoveObjectsPolicy)
Parameters
| Type |
Name |
Description |
| TObject |
obj |
|
| bool |
inverseSendRemoveObjectsPolicy |
|
OnCreate()
Called when this system is created.
Declaration
protected override void OnCreate()
Overrides
Unity.Entities.ComponentSystemBase.OnCreate()
OnUpdate()
Implement OnUpdate() to perform the major work of this system.
Declaration
protected override void OnUpdate()
Overrides
Unity.Entities.SystemBase.OnUpdate()
Extension Methods