Method GetSharedComponentTypeHandle
GetSharedComponentTypeHandle<T>()
Gets the run-time type information required to access a shared component data in a chunk.
Declaration
[Obsolete("SystemAPI.ManagedAPI is deprecated and will be removed. Class-based IComponentData and managed ISharedComponentData are being removed. Convert <T> to a struct IComponentData (with UnityObjectRef<T> for UnityEngine.Object references) and call the unmanaged SystemAPI equivalents. First deprecated in 6.6.")]
public static SharedComponentTypeHandle<T> GetSharedComponentTypeHandle<T>() where T : struct, ISharedComponentData
Returns
| Type | Description |
|---|---|
| SharedComponentTypeHandle<T> | An object representing the type information required to safely access shared component data stored in a chunk. |
Type Parameters
| Name | Description |
|---|---|
| T | A struct that implements ISharedComponentData. |
Remarks
Not working in Entities.ForEach, IJobEntity, and Utility methods