Method IsToolActive
IsToolActive(Transform, Type)
Check if the active tool on the given ray origin is of the given type
Declaration
bool IsToolActive(Transform rayOrigin, Type type)
Parameters
Type | Name | Description |
---|---|---|
Transform | rayOrigin | The ray origin to check |
Type | type | The tool type to compare |
Returns
Type | Description |
---|---|
bool | True if the active tool is of the given type |