Search Results for

    Show / Hide Table of Contents

    Class InteractionButtonController

    Handles the behaviour of the interaction buttons, such as enabling and disabling when appropriate or highlighting the combine button in orange when a combination would be possible.

    It also allows for grabbed objects to be rotatable.

    Inheritance
    System.Object
    InteractionButtonController
    Namespace: UI
    Assembly: Assembly-CSharp.dll
    Syntax
    public class InteractionButtonController : MonoBehaviour

    Fields

    | Improve this Doc View Source

    grabbedObjectRotationSpeed

    The speed that a grabbed object is rotated.

    Declaration
    public float grabbedObjectRotationSpeed
    Field Value
    Type Description
    System.Single

    Default is 0.2f.

    Methods

    | Improve this Doc View Source

    ActivateInteractButtons()

    Activates the interaction buttons for the user to see.

    Declaration
    public void ActivateInteractButtons()
    | Improve this Doc View Source

    DeactivateInteractButtons()

    Deactivates the interaction buttons.

    Declaration
    public void DeactivateInteractButtons()
    | Improve this Doc View Source

    GrabRelease()

    Handles what happenes when the grab/Release button is called depending on its current state.

    Declaration
    public void GrabRelease()
    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation