/// <summary> /// Initializes the handle for the action /// </summary> public virtual void Initialize(bool createNew = false, bool throwErrors = true) { if (createNew) { setData.Initialize(); } else { setData = SteamVR_Input.GetActionSetDataFromPath(actionSetPath); if (setData == null) { #if UNITY_EDITOR if (throwErrors) { if (string.IsNullOrEmpty(actionSetPath)) { Debug.LogError("<b>[SteamVR]</b> Action has not been assigned."); } else { Debug.LogError("<b>[SteamVR]</b> Could not find action with path: " + actionSetPath); } } #endif } } initialized = true; }
/// <summary> /// Initializes the handle for the action /// </summary> public virtual void Initialize(bool createNew = false, bool throwErrors = true) { if (createNew) { setData.Initialize(); } else { setData = SteamVR_Input.GetActionSetDataFromPath(actionSetPath); } initialized = true; }