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(); }
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(); }
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(); }
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(); }
void Start() { m_texts.Start(); }
private void Start() { m_texts.Start(); vroidHub.SetOnLoadHandler(OnVrmLoadedFromVRoidHub); }
private void Start() { m_texts.Start(); }