public override void Reset()
 {
     boolVariable  = new ConcreteBoolVar();
     trueValue     = (Material)null;
     falseValue    = (Material)null;
     storeMaterial = new ConcreteMaterialVar();
 }
Example #2
0
 public override void Reset () {
     base.Reset();
     SingleValue = new ConcreteFloatVar();
     intValue = new ConcreteIntVar();
     BooleanValue = new ConcreteBoolVar();
     StringValue = new ConcreteStringVar();
     Vector3Value = new ConcreteVector3Var();
     RectValue = new ConcreteRectVar();
     ColorValue = new ConcreteColorVar();
     GameObjectValue = new ConcreteGameObjectVar(this.self);
     MaterialValue = new ConcreteMaterialVar();
     TextureValue = new ConcreteTextureVar();
     ObjectValue = new ConcreteObjectVar();
 }
 public override void Reset()
 {
     base.Reset();
     SingleValue     = new ConcreteFloatVar();
     intValue        = new ConcreteIntVar();
     BooleanValue    = new ConcreteBoolVar();
     StringValue     = new ConcreteStringVar();
     Vector3Value    = new ConcreteVector3Var();
     RectValue       = new ConcreteRectVar();
     ColorValue      = new ConcreteColorVar();
     GameObjectValue = new ConcreteGameObjectVar(this.self);
     MaterialValue   = new ConcreteMaterialVar();
     TextureValue    = new ConcreteTextureVar();
     ObjectValue     = new ConcreteObjectVar();
 }
 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;
 }
Example #5
0
 public override void Reset () {
     material = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newFloat = new ConcreteFloatVar();
 }
 public override void Reset()
 {
     material      = new ConcreteMaterialVar();
     newShaderName = "Diffuse";
     newShader     = new ConcreteObjectVar();
 }
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newTexture   = new ConcreteTextureVar();
 }
Example #8
0
 public override void Reset()
 {
     newSkybox = new ConcreteMaterialVar();
 }
Example #9
0
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newVector    = new ConcreteVector3Var();
 }
        /// <summary> 
        /// Draw a material variable.
        /// <param name="rect">The position to draw the variable.</param>
        /// <param name="materialVar">The material variable to be drawn.</param>
        /// </summary>
        static void DrawMaterialVar (Rect rect, MaterialVar materialVar) {
            rect.yMin += 3f;
            rect.yMax -= 2f;
            rect.xMin += 6f;
            rect.xMax -= 6f;
            DrawName(new Rect (rect.x, rect.y, c_SmallNameWidth, rect.height), materialVar);

            rect.xMin += c_SmallNameWidth + c_Space;
            rect.xMax -= c_MinusButtonWidth + c_RightPadding;
            EditorGUI.BeginChangeCheck();
            var newValue = EditorGUI.ObjectField (rect, GUIContent.none, materialVar.Value, typeof(Material), true) as Material;
            if (EditorGUI.EndChangeCheck() && newValue != materialVar.Value) {
                // Register undo
                if (materialVar.blackboard != null) { 
                    #if UNITY_4_0_0 || UNITY_4_1 || UNITY_4_2
                    Undo.RegisterUndo(materialVar.blackboard, "Variable Value");
                    #else
                    Undo.RecordObject(materialVar.blackboard, "Variable Value");
                    #endif
                }

                // Update variable value
                materialVar.Value = newValue;
                // Set blackboard dirty flag
                if (materialVar.blackboard != null) EditorUtility.SetDirty(materialVar.blackboard);
            }

            rect.x += rect.width + 2f;
            rect.width = c_MinusButtonWidth;
            rect.yMin -= 2f;
            rect.yMax += 2f;
            if (GUI.Button(rect, s_Styles.iconToolbarMinus, s_Styles.invisbleButton))
                s_VariableToRemove = materialVar;
        }
Example #11
0
 public override void Reset()
 {
     variable = new ConcreteMaterialVar();
     newValue = new ConcreteMaterialVar();
 }
Example #12
0
 public override void Reset()
 {
     materials     = new MaterialVar[0];
     storeMaterial = new ConcreteMaterialVar();
 }
 public override void Reset () {
     material = new ConcreteMaterialVar();
     newMainColor = new ConcreteColorVar();
 }
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     newMainColor = new ConcreteColorVar();
 }
Example #15
0
 public override void Reset()
 {
     material    = new ConcreteMaterialVar();
     storeShader = new ConcreteObjectVar();
 }
Example #16
0
 public override void Reset () {
     materials = new MaterialVar[0];
     storeMaterial = new ConcreteMaterialVar();
 }
Example #17
0
 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;
 }
Example #18
0
 public override void Reset () {
     material = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newTexture = new ConcreteTextureVar();
 }
 public override void Reset()
 {
     material     = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newInt       = new ConcreteIntVar();
 }
Example #20
0
 public override void Reset () {
     material = new ConcreteMaterialVar();
     propertyName = new ConcreteStringVar();
     newVector = new ConcreteVector3Var();
 }
 public override void Reset () {
     material = new ConcreteMaterialVar();
     newMainTexture = new ConcreteTextureVar();
 }
Example #22
0
 public override void Reset()
 {
     material       = new ConcreteMaterialVar();
     newMainTexture = new ConcreteTextureVar();
 }
Example #23
0
 public override void Reset () {
     newSkybox = new ConcreteMaterialVar();
 }
Example #24
0
 public override void Reset () {
     material = new ConcreteMaterialVar();
     storeShader = new ConcreteObjectVar();
 }