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