2013-02-07から1日間の記事一覧
UnityScriptで実験した。C#でも同じ結果であろうNewBehaviourScript.jsとNewBehaviourScript1.jsを生成して、同じGameObjectへアタッチしてみた。 内容は同じ以下の内容 #pragma strict function Start () { Debug.LogError(GetInstanceID()); } function Up…
URL: http://docs.unity3d.com/Documentation/ScriptReference/Handles.Label.htmlLabelHandle.jsを作り(WireArcExample.jsは間違い??)、これはDummyLabelScriptというコンポーネントに対して行なっている。 DummyLabelScript.jsをGameObjectへアタッチ…
http://docs.unity3d.com/Documentation/ScriptReference/Animation.Sample.htmlhttp://answers.unity3d.com/questions/280473/best-way-to-stop-and-reset-an-animation.html Sample()を呼ぶ?
GetComponent(Hoge).enabled = true; enabled' is not a member of 'UnityEngine.Component'. ↑こうなるGenerics版使うっぽいそれか、面倒だが、as MonoBehaviourをつけた (GetComponent(Hoge) as MonoBehaviour).enabled = true;