Struct ArchetypeChunk
Syntax
public struct ArchetypeChunk : IEquatable<ArchetypeChunk>
Properties
Archetype
Declaration
public EntityArchetype Archetype { get; }
Property Value
Capacity
Declaration
public int Capacity { get; }
Property Value
Type |
Description |
System.Int32 |
|
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Full
Declaration
public bool Full { get; }
Property Value
Type |
Description |
System.Boolean |
|
Null
Declaration
public static ArchetypeChunk Null { get; }
Property Value
Methods
DidChange<T>(ArchetypeChunkBufferType<T>, UInt32)
Declaration
public bool DidChange<T>(ArchetypeChunkBufferType<T> chunkBufferType, uint version)
where T : struct, IBufferElementData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
DidChange<T>(ArchetypeChunkComponentType<T>, UInt32)
Declaration
public bool DidChange<T>(ArchetypeChunkComponentType<T> chunkComponentType, uint version)
where T : struct, IComponentData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
DidChange<T>(ArchetypeChunkSharedComponentType<T>, UInt32)
Declaration
public bool DidChange<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData, uint version)
where T : struct, ISharedComponentData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Equals(Object)
Declaration
public override bool Equals(object compare)
Parameters
Type |
Name |
Description |
System.Object |
compare |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Equals(ArchetypeChunk)
Declaration
public bool Equals(ArchetypeChunk archetypeChunk)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetBufferAccessor<T>(ArchetypeChunkBufferType<T>)
Declaration
public BufferAccessor<T> GetBufferAccessor<T>(ArchetypeChunkBufferType<T> bufferComponentType)
where T : struct, IBufferElementData
Parameters
Returns
Type Parameters
GetChunkComponentData<T>(ArchetypeChunkComponentType<T>)
Declaration
public T GetChunkComponentData<T>(ArchetypeChunkComponentType<T> chunkComponentType)
where T : struct
Parameters
Returns
Type Parameters
GetComponentObjects<T>(ArchetypeChunkComponentType<T>, EntityManager)
Declaration
public ArchetypeChunkComponentObjects<T> GetComponentObjects<T>(ArchetypeChunkComponentType<T> componentType, EntityManager manager)
where T : class
Parameters
Returns
Type Parameters
GetComponentVersion<T>(ArchetypeChunkBufferType<T>)
Declaration
public uint GetComponentVersion<T>(ArchetypeChunkBufferType<T> chunkBufferType)
where T : struct, IBufferElementData
Parameters
Returns
Type |
Description |
System.UInt32 |
|
Type Parameters
GetComponentVersion<T>(ArchetypeChunkComponentType<T>)
Declaration
public uint GetComponentVersion<T>(ArchetypeChunkComponentType<T> chunkComponentType)
where T : struct, IComponentData
Parameters
Returns
Type |
Description |
System.UInt32 |
|
Type Parameters
GetComponentVersion<T>(ArchetypeChunkSharedComponentType<T>)
Declaration
public uint GetComponentVersion<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData)
where T : struct, ISharedComponentData
Parameters
Returns
Type |
Description |
System.UInt32 |
|
Type Parameters
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
GetNativeArray(ArchetypeChunkEntityType)
Declaration
public NativeArray<Entity> GetNativeArray(ArchetypeChunkEntityType archetypeChunkEntityType)
Parameters
Returns
Type |
Description |
NativeArray<Entity> |
|
GetNativeArray<T>(ArchetypeChunkComponentType<T>)
Declaration
public NativeArray<T> GetNativeArray<T>(ArchetypeChunkComponentType<T> chunkComponentType)
where T : struct, IComponentData
Parameters
Returns
Type |
Description |
NativeArray<T> |
|
Type Parameters
GetSharedComponentData<T>(ArchetypeChunkSharedComponentType<T>, EntityManager)
Declaration
public T GetSharedComponentData<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData, EntityManager entityManager)
where T : struct, ISharedComponentData
Parameters
Returns
Type Parameters
GetSharedComponentIndex<T>(ArchetypeChunkSharedComponentType<T>)
Declaration
public int GetSharedComponentIndex<T>(ArchetypeChunkSharedComponentType<T> chunkSharedComponentData)
where T : struct, ISharedComponentData
Parameters
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
Has<T>(ArchetypeChunkBufferType<T>)
Declaration
public bool Has<T>(ArchetypeChunkBufferType<T> chunkBufferType)
where T : struct, IBufferElementData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Has<T>(ArchetypeChunkComponentType<T>)
Declaration
public bool Has<T>(ArchetypeChunkComponentType<T> chunkComponentType)
where T : struct, IComponentData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Has<T>(ArchetypeChunkSharedComponentType<T>)
Declaration
public bool Has<T>(ArchetypeChunkSharedComponentType<T> chunkComponentType)
where T : struct, ISharedComponentData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
HasChunkComponent<T>(ArchetypeChunkComponentType<T>)
Declaration
public bool HasChunkComponent<T>(ArchetypeChunkComponentType<T> chunkComponentType)
where T : struct, IComponentData
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Invalid()
Declaration
Returns
Type |
Description |
System.Boolean |
|
Locked()
Returns true if Chunk is Locked
Declaration
Returns
Type |
Description |
System.Boolean |
|
NumSharedComponents()
Declaration
public int NumSharedComponents()
Returns
Type |
Description |
System.Int32 |
|
SetChunkComponentData<T>(ArchetypeChunkComponentType<T>, T)
Declaration
public void SetChunkComponentData<T>(ArchetypeChunkComponentType<T> chunkComponentType, T value)
where T : struct
Parameters
Type Parameters
Operators
Equality(ArchetypeChunk, ArchetypeChunk)
Declaration
public static bool operator ==(ArchetypeChunk lhs, ArchetypeChunk rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(ArchetypeChunk, ArchetypeChunk)
Declaration
public static bool operator !=(ArchetypeChunk lhs, ArchetypeChunk rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.