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); }
public override void Construct() { Donut = new ExtDonut(transform.position, transform.rotation, transform.lossyScale, 0.5f, 0.125f); }