Ejemplo n.º 1
0
        public void AddLabelProperty(string text)
        {
            SerializedControllerProperty labelSerializedControllerProperty =
                new SerializedControllerProperty
            {
                SerializedControlerPropertyType = SerializedControlerPropertyType.Label,
                PropertyName        = text,
                PropertyDescription = text
            };

            ControlerPropertyList.Add(labelSerializedControllerProperty);
        }
Ejemplo n.º 2
0
        public void AddBooleanProperty(string id, string description, string info, bool defaultValue)
        {
            SerializedControllerProperty serializedControllerProperty =
                new SerializedControllerProperty
            {
                SerializedControlerPropertyType = SerializedControlerPropertyType.Boolean,
                BoolValue           = defaultValue,
                PropertyName        = id,
                PropertyInfo        = info,
                PropertyDescription = description
            };

            ControlerPropertyList.Add(serializedControllerProperty);
        }
Ejemplo n.º 3
0
        public void AddColorProperty(string id, string description, string info, Color defaultValue)
        {
            SerializedControllerProperty serializedControllerProperty =
                new SerializedControllerProperty
            {
                SerializedControlerPropertyType = SerializedControlerPropertyType.ColorSelector,
                ColorValue          = defaultValue,
                PropertyName        = id,
                PropertyInfo        = "",
                PropertyDescription = description
            };

            ControlerPropertyList.Add(serializedControllerProperty);
        }
Ejemplo n.º 4
0
        public void AddRgbaSelectorProperty(string id, string description, string info, int defaultValue)
        {
            SerializedControllerProperty serializedControllerProperty =
                new SerializedControllerProperty
            {
                SerializedControlerPropertyType = SerializedControlerPropertyType.RgbaSelector,
                IntValue            = defaultValue,
                PropertyName        = id,
                PropertyDescription = description,
                PropertyInfo        = info
            };

            ControlerPropertyList.Add(serializedControllerProperty);
        }
Ejemplo n.º 5
0
        public void AddTextureProperty(string id, string description, string info, Texture2D defaultValue)
        {
            SerializedControllerProperty serializedControllerProperty =
                new SerializedControllerProperty
            {
                SerializedControlerPropertyType = SerializedControlerPropertyType.Texture2D,
                TextureValue        = defaultValue,
                PropertyName        = id,
                PropertyDescription = description,
                PropertyInfo        = info
            };

            ControlerPropertyList.Add(serializedControllerProperty);
        }
Ejemplo n.º 6
0
        public void AddFloatProperty(string id, string description, string info, float defaultValue, float minValue, float maxValue)
        {
            SerializedControllerProperty serializedControllerProperty =
                new SerializedControllerProperty
            {
                SerializedControlerPropertyType = SerializedControlerPropertyType.Float,
                FloatValue          = defaultValue,
                FloatMinValue       = minValue,
                FloatMaxValue       = maxValue,
                PropertyName        = id,
                PropertyDescription = description,
                PropertyInfo        = info
            };

            ControlerPropertyList.Add(serializedControllerProperty);
        }