Show / Hide Table of Contents

    Class SteamVR_ActionSet_Data

    Action sets are logical groupings of actions. Multiple sets can be active at one time.

    Inheritance
    System.Object
    SteamVR_ActionSet_Data
    Implements
    ISteamVR_ActionSet
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Valve.VR
    Assembly: Assembly-CSharp.dll
    Syntax
    public class SteamVR_ActionSet_Data : ISteamVR_ActionSet

    Constructors

    SteamVR_ActionSet_Data()

    Declaration
    public SteamVR_ActionSet_Data()

    Fields

    initialized

    Declaration
    protected bool initialized
    Field Value
    Type Description
    System.Boolean

    rawSetActive

    Declaration
    protected Dictionary<SteamVR_Input_Sources, bool> rawSetActive
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<SteamVR_Input_Sources, System.Boolean>

    rawSetLastChanged

    Declaration
    protected Dictionary<SteamVR_Input_Sources, float> rawSetLastChanged
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<SteamVR_Input_Sources, System.Single>

    rawSetPriority

    Declaration
    protected Dictionary<SteamVR_Input_Sources, int> rawSetPriority
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<SteamVR_Input_Sources, System.Int32>

    Properties

    allActions

    All actions within this set (including out actions)

    Declaration
    public SteamVR_Action[] allActions { get; set; }
    Property Value
    Type Description
    SteamVR_Action[]

    fullPath

    The full path to this action set (ex: /actions/in/default)

    Declaration
    public string fullPath { get; set; }
    Property Value
    Type Description
    System.String

    handle

    Declaration
    public ulong handle { get; set; }
    Property Value
    Type Description
    System.UInt64

    nonVisualInActions

    All IN actions within this set that are NOT pose or skeleton actions

    Declaration
    public ISteamVR_Action_In[] nonVisualInActions { get; set; }
    Property Value
    Type Description
    ISteamVR_Action_In[]

    outActionArray

    All out actions within this set

    Declaration
    public ISteamVR_Action_Out[] outActionArray { get; set; }
    Property Value
    Type Description
    ISteamVR_Action_Out[]

    poseActions

    All pose actions within this set

    Declaration
    public SteamVR_Action_Pose[] poseActions { get; set; }
    Property Value
    Type Description
    SteamVR_Action_Pose[]

    skeletonActions

    All skeleton actions within this set

    Declaration
    public SteamVR_Action_Skeleton[] skeletonActions { get; set; }
    Property Value
    Type Description
    SteamVR_Action_Skeleton[]

    usage

    Declaration
    public string usage { get; set; }
    Property Value
    Type Description
    System.String

    visualActions

    All pose and skeleton actions within this set

    Declaration
    public ISteamVR_Action_In[] visualActions { get; set; }
    Property Value
    Type Description
    ISteamVR_Action_In[]

    Methods

    Activate(SteamVR_Input_Sources, Int32, Boolean)

    Activate this set so its actions can be called

    Declaration
    public void Activate(SteamVR_Input_Sources activateForSource = SteamVR_Input_Sources.Any, int priority = 0, bool disableAllOtherActionSets = false)
    Parameters
    Type Name Description
    SteamVR_Input_Sources activateForSource

    Will activate this action set only for the specified source. Any if you want to activate for everything

    System.Int32 priority

    The priority of this action set. If you have two actions bound to the same input (button) the higher priority set will override the lower priority. If they are the same priority both will execute.

    System.Boolean disableAllOtherActionSets

    Disable all other action sets at the same time

    Deactivate(SteamVR_Input_Sources)

    Deactivate the action set so its actions can no longer be called

    Declaration
    public void Deactivate(SteamVR_Input_Sources forSource = SteamVR_Input_Sources.Any)
    Parameters
    Type Name Description
    SteamVR_Input_Sources forSource

    FinishPreInitialize()

    Declaration
    public void FinishPreInitialize()

    GetShortName()

    Gets the last part of the path for this action. Removes "actions" and direction.

    Declaration
    public string GetShortName()
    Returns
    Type Description
    System.String

    GetTimeLastChanged(SteamVR_Input_Sources)

    Returns the last time this action set was changed (set to active or inactive)

    Declaration
    public float GetTimeLastChanged(SteamVR_Input_Sources source = SteamVR_Input_Sources.Any)
    Parameters
    Type Name Description
    SteamVR_Input_Sources source

    The device to check. Any means all devices here (not left or right, but all)

    Returns
    Type Description
    System.Single

    Initialize()

    Declaration
    public void Initialize()

    IsActive(SteamVR_Input_Sources)

    Returns whether the set is currently active or not.

    Declaration
    public bool IsActive(SteamVR_Input_Sources source = SteamVR_Input_Sources.Any)
    Parameters
    Type Name Description
    SteamVR_Input_Sources source

    The device to check. Any means all devices here (not left or right, but all)

    Returns
    Type Description
    System.Boolean

    PreInitialize()

    Declaration
    public void PreInitialize()

    ReadRawSetActive(SteamVR_Input_Sources)

    Declaration
    public bool ReadRawSetActive(SteamVR_Input_Sources inputSource)
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource
    Returns
    Type Description
    System.Boolean

    ReadRawSetLastChanged(SteamVR_Input_Sources)

    Declaration
    public float ReadRawSetLastChanged(SteamVR_Input_Sources inputSource)
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource
    Returns
    Type Description
    System.Single

    ReadRawSetPriority(SteamVR_Input_Sources)

    Declaration
    public int ReadRawSetPriority(SteamVR_Input_Sources inputSource)
    Parameters
    Type Name Description
    SteamVR_Input_Sources inputSource
    Returns
    Type Description
    System.Int32

    Implements

    ISteamVR_ActionSet
    In This Article
    • Constructors
      • SteamVR_ActionSet_Data()
    • Fields
      • initialized
      • rawSetActive
      • rawSetLastChanged
      • rawSetPriority
    • Properties
      • allActions
      • fullPath
      • handle
      • nonVisualInActions
      • outActionArray
      • poseActions
      • skeletonActions
      • usage
      • visualActions
    • Methods
      • Activate(SteamVR_Input_Sources, Int32, Boolean)
      • Deactivate(SteamVR_Input_Sources)
      • FinishPreInitialize()
      • GetShortName()
      • GetTimeLastChanged(SteamVR_Input_Sources)
      • Initialize()
      • IsActive(SteamVR_Input_Sources)
      • PreInitialize()
      • ReadRawSetActive(SteamVR_Input_Sources)
      • ReadRawSetLastChanged(SteamVR_Input_Sources)
      • ReadRawSetPriority(SteamVR_Input_Sources)
    • Implements
    Back to top Copyright (c) Valve Corporation, All rights reserved.