Example #1
0
        protected override void PrepareProperties(MaterialProperties properties)
        {
            if (Randomize)
            {
                Strength              = Random.Range(0, Strength);
                DistanceStrength      = Random.Range(0, DistanceStrength);
                StrengthDecreaseSpeed = Random.Range(0, StrengthDecreaseSpeed);
            }

            strengthProperty         = properties.GetFloatProperty("_Strength");
            distanceStrengthProperty = properties.GetFloatProperty("_DistanceStrength");
            axisProperty             = properties.GetVectorProperty("_Axis");
            axisProperty.Value       = Vector3.forward;
            properties.GetVectorProperty("_Origin").Value = Origin;
        }