Unity

UnityWEBGL ←→Javascript

WEBGLの全画面表示 TemplateData>style.css #unity-container.unity-desktop {width: 100%; height: 100%} #unity-canvas { background: #231F20; width: 100%; height: 100%} UnityC# から Javascript関数を呼び出す Javascriptプラグインを作成 Assets>Plu…

mixamoとunityとの連携

unity内のリグ付きモデルを書き出す mixamoでアニメーション作成 unityに読み込み アニメーションタイプをヒューマノイドに変更

Unity 一度だけ処理(Do Once)

// Time.time > 1.5f の場合に1回だけHoge()を実行 if (Input.GetMouseButton(0)) { if (iscalled == false) { iscalled = true; Hoge(); } }

Unity Destroy

Destroy (this.gameObject, 5.0f);

Unity コンポーネント検索

BoxCollider component = this.gameObject.GetComponent(); Destroy(component);

Unigy トグル処理

private bool Flag; private void ToggleMethod() { if (isRecording) { isRecording = false; HOGE(); } else { isRecording = true; MOGE(); } }