예제 #1
0
        async void Start()
        {
            m_version.text = string.Format("SimpleViewer UniVRM-{0}.{1}",
                                           VRMVersion.MAJOR, VRMVersion.MINOR);
            m_open.onClick.AddListener(OnOpenClicked);

            // load initial bvh
            await LoadMotionAsync(Application.streamingAssetsPath + "/VRM.Samples/Motions/test.txt");

            string[] cmds = System.Environment.GetCommandLineArgs();
            if (cmds.Length > 1)
            {
                StartCoroutine(LoadModelAsync(cmds[1]));
            }

            m_texts.Start();
        }
예제 #2
0
        private void Start()
        {
            m_version.text = string.Format("VRMViewer {0}.{1}",
                                           VRMVersion.MAJOR, VRMVersion.MINOR);
            m_open.onClick.AddListener(OnOpenClicked);

            // load initial bvh
            LoadMotion(Application.streamingAssetsPath + "/VRM.Samples/Motions/test.txt");

            string[] cmds = System.Environment.GetCommandLineArgs();
            if (cmds.Length > 1)
            {
                LoadModel(cmds[1]);
            }

            m_texts.Start();
        }
예제 #3
0
        private void Start()
        {
            m_version.text = string.Format("VRMViewer {0}.{1}",
                                           VRMVersion.MAJOR, VRMVersion.MINOR);
            m_open.onClick.AddListener(OnOpenClicked);

            // load initial bvh
            if (m_motion != null)
            {
                LoadMotion(m_motion.text);
            }

            string[] cmds = System.Environment.GetCommandLineArgs();
            if (cmds.Length > 1)
            {
                LoadModel(cmds[1]);
            }

            m_texts.Start();
        }
예제 #4
0
        private void Start()
        {
            m_version.text = string.Format("VRMViewer {0}.{1}",
                                           VRMVersion.MAJOR, VRMVersion.MINOR);
            m_open.onClick.AddListener(OnOpenClicked);
            m_useFastSpringBone.onValueChanged.AddListener(OnUseFastSpringBoneValueChanged);
            OnUseFastSpringBoneValueChanged(m_useFastSpringBone.isOn);

            m_reset.onClick.AddListener(() => m_loaded.OnResetClicked());

            // load initial bvh
            if (m_motion != null)
            {
                LoadMotion("tmp.bvh", m_motion.text);
            }

            string[] cmds = System.Environment.GetCommandLineArgs();
            if (cmds.Length > 1)
            {
                LoadModel(cmds[1]);
            }

            m_texts.Start();
        }
예제 #5
0
 void Start()
 {
     m_texts.Start();
 }
예제 #6
0
 private void Start()
 {
     m_texts.Start();
     vroidHub.SetOnLoadHandler(OnVrmLoadedFromVRoidHub);
 }
예제 #7
0
 private void Start()
 {
     m_texts.Start();
 }