public override void Reset() { base.Reset(); a = new ConcreteQuaternionVar(); b = new ConcreteQuaternionVar(); }
public override void Reset() { boolVariable = new ConcreteBoolVar(); trueValue = Quaternion.Euler(0, 0, 180); falseValue = Quaternion.identity; storeQuaternion = new ConcreteQuaternionVar(); }
public override void Reset() { base.Reset(); easeType = TweenNode.EaseType.easeInQuad; target = new ConcreteQuaternionVar(); vectorValue = new ConcreteVector3Var(); }
public override void Reset() { original = new ConcreteGameObjectVar(this.self); position = new ConcreteVector3Var(); rotation = new ConcreteQuaternionVar(); storeClone = new ConcreteGameObjectVar(this.self); }
public override void Reset () { gameObject = new ConcreteGameObjectVar(this.self); storeRotation = new ConcreteQuaternionVar(); storeEulerAngles = new ConcreteVector3Var(); storeX = new ConcreteFloatVar(); storeY = new ConcreteFloatVar(); storeZ = new ConcreteFloatVar(); relativeTo = Space.Self; }
public override void Reset() { gameObject = new ConcreteGameObjectVar(this.self); newRotation = new ConcreteQuaternionVar(); newEulerAngles = new ConcreteVector3Var(); newX = new ConcreteFloatVar(); newY = new ConcreteFloatVar(); newZ = new ConcreteFloatVar(); relativeTo = Space.Self; }
public override void Reset() { gameObject = new ConcreteGameObjectVar(this.self); methodName = new ConcreteStringVar(); options = SendMessageOptions.RequireReceiver; floatParameter = new ConcreteFloatVar(); intParameter = new ConcreteIntVar(); boolParameter = new ConcreteBoolVar(); stringParameter = new ConcreteStringVar(); vector3Parameter = new ConcreteVector3Var(); rectParameter = new ConcreteRectVar(); colorParameter = new ConcreteColorVar(); quaternionParameter = new ConcreteQuaternionVar(); gameObjectParameter = new ConcreteGameObjectVar(this.self); textureParameter = new ConcreteTextureVar(); materialParameter = new ConcreteMaterialVar(); fsmEventParameter = new ConcreteFsmEvent(); objectParameter = new ConcreteObjectVar(); messageType = MessageType.SendMessage; }
public override void Reset () { base.Reset(); a = new ConcreteQuaternionVar(); b = new ConcreteQuaternionVar(); }
/// <summary> /// Draw a quaternion variable. /// <param name="rect">The position to draw the variable.</param> /// <param name="quaternionVar">The quaternion variable to be drawn.</param> /// </summary> static void DrawQuaternionVar (Rect rect, QuaternionVar quaternionVar) { rect.yMin += 3f; rect.yMax -= 2f; rect.xMin += 6f; rect.xMax -= 6f; DrawName(new Rect (rect.x, rect.y, c_SmallNameWidth, rect.height), quaternionVar); rect.xMin += c_SmallNameWidth + c_Space; rect.xMax -= c_MinusButtonWidth + c_RightPadding; #if UNITY_4_0_0 || UNITY_4_1 || UNITY_4_2 rect.y -= 19f; #else rect.y -= 16f; #endif var q = quaternionVar.Value; var v4 = new Vector4(q[0], q[1], q[2], q[3]); EditorGUI.BeginChangeCheck(); var newV4 = EditorGUI.Vector4Field (rect, string.Empty, v4); if (EditorGUI.EndChangeCheck() && v4 != newV4) { // Register undo if (quaternionVar.blackboard != null) { #if UNITY_4_0_0 || UNITY_4_1 || UNITY_4_2 Undo.RegisterUndo(quaternionVar.blackboard, "Variable Value"); #else Undo.RecordObject(quaternionVar.blackboard, "Variable Value"); #endif } // Update variable value quaternionVar.Value = new Quaternion(newV4[0], newV4[1], newV4[2], newV4[3]); // Set blackboard dirty flag if (quaternionVar.blackboard != null) EditorUtility.SetDirty(quaternionVar.blackboard); } rect.x += rect.width + 2f; #if UNITY_4_0_0 || UNITY_4_1 || UNITY_4_2 rect.y += 19f; #else rect.y += 16f; #endif rect.width = c_MinusButtonWidth; rect.yMin -= 2f; rect.yMax += 2f; if (GUI.Button(rect, s_Styles.iconToolbarMinus, s_Styles.invisbleButton)) s_VariableToRemove = quaternionVar; }
public override void Reset () { base.Reset(); easeType = TweenNode.EaseType.easeInQuad; target = new ConcreteQuaternionVar(); vectorValue = new ConcreteVector3Var(); }
public override void Reset () { original = new ConcreteGameObjectVar(this.self); position = new ConcreteVector3Var(); rotation = new ConcreteQuaternionVar(); storeClone = new ConcreteGameObjectVar(this.self); }
public override void Reset() { variable = new ConcreteQuaternionVar(); newValue = new ConcreteQuaternionVar(); }
public override void Reset () { boolVariable = new ConcreteBoolVar(); trueValue = Quaternion.Euler(0,0,180); falseValue = Quaternion.identity; storeQuaternion = new ConcreteQuaternionVar(); }
public override void Reset () { variable = new ConcreteQuaternionVar(); newValue = new ConcreteQuaternionVar(); }
public override void Reset () { gameObject = new ConcreteGameObjectVar(this.self); methodName = new ConcreteStringVar(); options = SendMessageOptions.RequireReceiver; floatParameter = new ConcreteFloatVar(); intParameter = new ConcreteIntVar(); boolParameter = new ConcreteBoolVar(); stringParameter = new ConcreteStringVar(); vector3Parameter = new ConcreteVector3Var(); rectParameter = new ConcreteRectVar(); colorParameter = new ConcreteColorVar(); quaternionParameter = new ConcreteQuaternionVar(); gameObjectParameter = new ConcreteGameObjectVar(this.self); textureParameter = new ConcreteTextureVar(); materialParameter = new ConcreteMaterialVar(); fsmEventParameter = new ConcreteFsmEvent(); objectParameter = new ConcreteObjectVar(); messageType = MessageType.SendMessage; }