Interface IManipulator | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IManipulator

    Gives decorated class access to the GameObject over which a particular ray is hovering

    Namespace: UnityEditor.Experimental.EditorVR
    Syntax
    public interface IManipulator

    Properties

    dragging

    Bool denoting the drag-state of a manipulator that implements this interface

    Declaration
    bool dragging { get; }
    Property Value
    Type Description
    Boolean

    rotate

    Delegate that processes the rotation, using the quaternion passed in

    Declaration
    Action<Quaternion, Transform> rotate { set; }
    Property Value
    Type Description
    Action<Quaternion, Transform>

    scale

    Delegate that processes the scale, using the vector3 passed in

    Declaration
    Action<Vector3> scale { set; }
    Property Value
    Type Description
    Action<Vector3>

    translate

    Delegate that processes the translation, using the vector3 passed in Caller also provides the ray origin that is doing the action, and which axes are constrained, if any

    Declaration
    Action<Vector3, Transform, AxisFlags> translate { set; }
    Property Value
    Type Description
    Action<Vector3, Transform, AxisFlags>

    Events

    dragEnded

    Delegate that is called once after every drag ends

    Declaration
    event Action<Transform> dragEnded
    Event Type
    Type Description
    Action<Transform>

    dragStarted

    Delegate that is called once after every drag starts

    Declaration
    event Action dragStarted
    Event Type
    Type Description
    Action
    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