Method SetHighlight
SetHighlight(GameObject, bool, Transform, Material, bool, float)
Method for highlighting objects
Declaration
void SetHighlight(GameObject go, bool active, Transform rayOrigin = null, Material material = null, bool force = false, float duration = 0)
Parameters
Type | Name | Description |
---|---|---|
GameObject | go | The object to highlight |
bool | active | Whether to add or remove the highlight |
Transform | rayOrigin | RayOrigin that hovered over the object (optional) |
Material | material | Custom material to use for this object |
bool | force | Force the setting or unsetting of the highlight |
float | duration | The duration for which to show this highlight. Keep default value of 0 to show until explicitly hidden |