Class TinyEnvironment
Inheritance
System.Object
TinyEnvironment
Syntax
public class TinyEnvironment : ComponentSystem
Fields
configEntity
Declaration
public Entity configEntity
Field Value
fixedFrameDeltaTime
Declaration
public float fixedFrameDeltaTime
Field Value
Type |
Description |
System.Single |
|
fixedFrameRateEnabled
Declaration
public bool fixedFrameRateEnabled
Field Value
Type |
Description |
System.Boolean |
|
whiteSpriteEntity
Declaration
public Entity whiteSpriteEntity
Field Value
Properties
frameDeltaTime
Declaration
public float frameDeltaTime { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public int frameNum { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
frameTime
Declaration
public double frameTime { get; protected set; }
Property Value
Type |
Description |
System.Double |
|
Methods
GetAllEntitiesByName(String, Allocator)
Declaration
public NativeList<Entity> GetAllEntitiesByName(string name, Allocator allocator = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Allocator |
allocator |
|
Returns
Type |
Description |
NativeList<Entity> |
|
GetConfigBufferData<T>()
Declaration
public DynamicBuffer<T> GetConfigBufferData<T>()
where T : struct, IBufferElementData
Returns
Type |
Description |
DynamicBuffer<T> |
|
Type Parameters
GetConfigData<T>()
Declaration
public T GetConfigData<T>()
where T : struct, IComponentData
Returns
Type Parameters
GetEntityByGuid(EntityGuid)
Declaration
public Entity GetEntityByGuid(EntityGuid guid)
Parameters
Type |
Name |
Description |
EntityGuid |
guid |
|
Returns
GetEntityByName(String)
Declaration
public Entity GetEntityByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetEntityGuid(Entity)
Declaration
public EntityGuid GetEntityGuid(Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type |
Description |
EntityGuid |
|
GetEntityName(Entity)
Declaration
public string GetEntityName(Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type |
Description |
System.String |
|
OnCreate()
Declaration
protected override void OnCreate()
OnDestroy()
Declaration
protected override void OnDestroy()
OnUpdate()
Declaration
protected override void OnUpdate()
SetConfigData<T>(T)
Declaration
public void SetConfigData<T>(T data)
where T : struct, IComponentData
Parameters
Type |
Name |
Description |
T |
data |
|
Type Parameters
SetEntityGuid(Entity, EntityGuid)
Declaration
public void SetEntityGuid(Entity entity, EntityGuid guid)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
EntityGuid |
guid |
|
SetEntityName(Entity, String)
Declaration
public void SetEntityName(Entity entity, string name)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
System.String |
name |
|
StepWallRealtimeFrame(Double)
Declaration
public void StepWallRealtimeFrame(double deltaTimeDouble)
Parameters
Type |
Name |
Description |
System.Double |
deltaTimeDouble |
|