Method SetBlinkingHighlight
SetBlinkingHighlight(IUsesSetHighlight, GameObject, bool, Transform, Material, bool, float, float)
Method for highlighting objects
Declaration
public static IEnumerator SetBlinkingHighlight(this IUsesSetHighlight user, GameObject go, bool active, Transform rayOrigin = null, Material material = null, bool force = false, float dutyPercent = 0.75, float cycleDuration = 0.8)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesSetHighlight | user | The functionality user |
| 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 | dutyPercent | The percentage of time when the highlight is active |
| float | cycleDuration | The duration for which to show this highlight. Keep default value of 0 to show until explicitly hidden |
Returns
| Type | Description |
|---|---|
| IEnumerator | The coroutine enumerator |