Ejemplo n.º 1
0
        public static void SetThickNess(SerializedProperty extDonut, float newThickNess)
        {
            ExtDonut donut = extDonut.GetValue <ExtDonut>();

            extDonut.GetPropertie(PROPERTY_THICKNESS).floatValue      = newThickNess;
            extDonut.GetPropertie(PROPERTY_REAL_THICKNESS).floatValue = newThickNess * donut.MaxXY(donut.LocalScale);
        }
Ejemplo n.º 2
0
 public override void Construct()
 {
     Donut = new ExtDonut(transform.position,
                          transform.rotation,
                          transform.lossyScale,
                          0.5f,
                          0.125f);
 }