docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)