Method TryGetComponentObject
TryGetComponentObject<T>(Entity, out T)
Declaration
[Obsolete("Managed-component access (AddComponentObject/GetComponentObject/SetComponentObject) is deprecated and will be removed. Convert your data to an unmanaged IComponentData and use the unmanaged Add/Get/SetComponentData APIs. To reference UnityEngine.Object instances, use UnityObjectRef<T>. First deprecated in 6.6.")]
[ExcludeFromBurstCompatTesting("Returns managed object")]
public bool TryGetComponentObject<T>(Entity entity, out T result)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| T |
result |
|
Returns
Type Parameters