Skip to content

Instantly share code, notes, and snippets.

@NegishiTakumi
Created July 12, 2016 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NegishiTakumi/7e252323a464935926012d879f542ebc to your computer and use it in GitHub Desktop.
Save NegishiTakumi/7e252323a464935926012d879f542ebc to your computer and use it in GitHub Desktop.
正常に設定してるのにViveの左コントローラだけDisableになる現象への対処(早く治って)
using UnityEngine;
using System.Collections;
public class TempBugFix : MonoBehaviour {
public GameObject left;
void Start() {
BUGFIXTEMP();
}
void BUGFIXTEMP()
{
var tmpConf = left.GetComponent<SteamVR_TrackedObject>();
tmpConf.index = SteamVR_TrackedObject.EIndex.Device4;
left.SetActive(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment