Method GetRefRWOptional
GetRefRWOptional(Entity)
Gets a safe reference to the component data and a default RefRW (RefRW.IsValid == false). ///
Declaration
public RefRW<T> GetRefRWOptional(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The referenced entity |
Returns
Type | Description |
---|---|
RefRW<T> | Returns a safe reference to the component data and a default RefRW. |