いつもは、「javascript」のシンタックスハイライトの指定でUnityScriptを書いてたけど「actionscript」の時がよかったりで微妙。actionscript3.0とかas3とか試したがなさげ。
・javascriptの場合
// Disable the spring on all HingeJoints // in this game object and all its child game objects var hingeJoints : Component[]; hingeJoints = GetComponentsInChildren (HingeJoint); for (var joint : HingeJoint in hingeJoints) { joint.useSpring = false; }
・actionscriptの場合
// Disable the spring on all HingeJoints // in this game object and all its child game objects var hingeJoints : Component[]; hingeJoints = GetComponentsInChildren (HingeJoint); for (var joint : HingeJoint in hingeJoints) { joint.useSpring = false; }
スーパーpre記法
http://d.hatena.ne.jp/hatenadiary/20061215/1166155734