void OnEnable() { m_target = (VRMLookAtHead)target; m_previewRenderUtility = new PreviewRenderUtility(true); #if UNITY_2017_1_OR_NEWER SetupItems(); #endif }
private void Start() { m_head = GetComponent <VRMLookAtHead>(); m_proxy = GetComponent <VRMBlendShapeProxy>(); if (m_head == null) { enabled = false; return; } m_head.YawPitchChanged += ApplyRotations; }
void Start() { m_head = GetComponent <VRMLookAtHead>(); if (m_head == null) { enabled = false; Debug.LogError("[VRMLookAtBoneApplyer]VRMLookAtHead not found"); return; } m_head.YawPitchChanged += ApplyRotations; LeftEye.Setup(); RightEye.Setup(); }
private void Reset() { m_lookAtHead = GameObject.FindObjectOfType <VRMLookAtHead>(); m_blinker = GameObject.FindObjectOfType <Blinker>(); }
private void Awake() { m_head = GetComponent <VRMLookAtHead>(); m_propxy = GetComponent <VRMBlendShapeProxy>(); }
void OnEnable() { m_target = (VRMLookAtHead)target; m_previewRenderUtility = new PreviewRenderUtility(true); }
private void Awake() { m_head = GetComponent <VRMLookAtHead>(); LeftEye.Setup(); RightEye.Setup(); }