docs.unity3d.com
    Show / Hide Table of Contents

    Class VisualFxManager

    Inheritance
    Object
    VisualFxManager
    Namespace: Unity.AutomatedQA
    Syntax
    public class VisualFxManager : MonoBehaviour

    Fields

    _activePulseManagers

    Declaration
    public static List<PulseManager> _activePulseManagers
    Field Value
    Type Description
    List<PulseManager>

    PulseDuration

    Declaration
    public static float PulseDuration
    Field Value
    Type Description
    Single

    PulseInterval

    Declaration
    public static float PulseInterval
    Field Value
    Type Description
    Single

    Properties

    ActivePulseManagers

    Declaration
    public static List<PulseManager> ActivePulseManagers { get; set; }
    Property Value
    Type Description
    List<PulseManager>

    HighlightSquares

    Declaration
    public static List<GameObject> HighlightSquares { get; set; }
    Property Value
    Type Description
    List<GameObject>

    Instance

    Declaration
    public static VisualFxManager Instance { get; set; }
    Property Value
    Type Description
    VisualFxManager

    PulseRings

    Declaration
    public static List<GameObject> PulseRings { get; set; }
    Property Value
    Type Description
    List<GameObject>

    VisualFxCanvases

    Declaration
    public static List<GameObject> VisualFxCanvases { get; set; }
    Property Value
    Type Description
    List<GameObject>

    Methods

    MakeHighlightSquare()

    Create and add a new PulseRing to the object pool.

    Declaration
    public static GameObject MakeHighlightSquare()
    Returns
    Type Description
    GameObject

    MakePulseRing()

    Create and add a new PulseRing to the object pool.

    Declaration
    public static GameObject MakePulseRing()
    Returns
    Type Description
    GameObject

    MakeVisualFxCanvas()

    Create and add a new VisualFxCanvas to the object pool.

    Declaration
    public static GameObject MakeVisualFxCanvas()
    Returns
    Type Description
    GameObject

    ReturnHighlightSquare(GameObject)

    Return square GameObject to the pool for later use.

    Declaration
    public static void ReturnHighlightSquare(GameObject square)
    Parameters
    Type Name Description
    GameObject square

    GameObject with RawImage of square

    ReturnPulseRing(GameObject)

    Declaration
    public static void ReturnPulseRing(GameObject ring)
    Parameters
    Type Name Description
    GameObject ring

    ReturnVisualFxCanvas(GameObject)

    Return ring GameObject to the pool for later use.

    Declaration
    public static void ReturnVisualFxCanvas(GameObject canvasObj)
    Parameters
    Type Name Description
    GameObject canvasObj

    SetUp(Transform)

    Declaration
    public static void SetUp(Transform parentTransform)
    Parameters
    Type Name Description
    Transform parentTransform

    TriggerDragFeedback(Boolean, Vector3)

    Creates a new DragFeedback GameObject on start of drag, positioned at point of click. Moves this GameObject until final drag release. Destroys GameObject at that point. Cannot use the same GameObject between drags due to TrailRenderer.Clear() not clearing previous positions properly, and LineRenderer not clearing previous positions when setting positionCount = 0 or SetPositions() with an empty Vector3 array.

    Declaration
    public void TriggerDragFeedback(bool isEndDrag, Vector3 position)
    Parameters
    Type Name Description
    Boolean isEndDrag
    Vector3 position

    TriggerHighlightAroundTarget(GameObject)

    Declaration
    public void TriggerHighlightAroundTarget(GameObject target)
    Parameters
    Type Name Description
    GameObject target

    TriggerPulseOnTarget(GameObject, Boolean)

    Declaration
    public void TriggerPulseOnTarget(GameObject target, bool isMouseDown)
    Parameters
    Type Name Description
    GameObject target
    Boolean isMouseDown

    TriggerPulseOnTarget(Vector3, Boolean)

    Renders a pulsing ripple effect over a target.

    Declaration
    public void TriggerPulseOnTarget(Vector3 target, bool isMouseDown)
    Parameters
    Type Name Description
    Vector3 target

    Location to put ripple effect.

    Boolean isMouseDown
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023