Method GetRefRW
GetRefRW(SystemHandle)
Gets a safe reference to the component data.
Declaration
public RefRW<T> GetRefRW(SystemHandle system)
Parameters
| Type | Name | Description |
|---|---|---|
| SystemHandle | system | The system handle with the referenced entity |
Returns
| Type | Description |
|---|---|
| RefRW<T> | Returns a safe reference to the component data. Throws an exception if the component doesn't exist. |
GetRefRW(Entity)
Gets a safe reference to the component data.
Declaration
public RefRW<T> GetRefRW(Entity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The referenced entity |
Returns
| Type | Description |
|---|---|
| RefRW<T> | Returns a safe reference to the component data. Throws an exception if the component doesn't exist. |