示例#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;
 }
示例#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();
 }
示例#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>();
 }
示例#6
0
 void OnEnable()
 {
     m_target = (VRMLookAtHead)target;
     m_previewRenderUtility = new PreviewRenderUtility(true);
 }
示例#7
0
 private void Awake()
 {
     m_head = GetComponent <VRMLookAtHead>();
     LeftEye.Setup();
     RightEye.Setup();
 }