Example #1
0
        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;
 }
Example #3
0
 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();
 }
Example #4
0
 private void Reset()
 {
     m_lookAtHead = GameObject.FindObjectOfType <VRMLookAtHead>();
     m_blinker    = GameObject.FindObjectOfType <Blinker>();
 }
 private void Awake()
 {
     m_head   = GetComponent <VRMLookAtHead>();
     m_propxy = GetComponent <VRMBlendShapeProxy>();
 }
Example #6
0
 void OnEnable()
 {
     m_target = (VRMLookAtHead)target;
     m_previewRenderUtility = new PreviewRenderUtility(true);
 }
Example #7
0
 private void Awake()
 {
     m_head = GetComponent <VRMLookAtHead>();
     LeftEye.Setup();
     RightEye.Setup();
 }