public override void OnInspectorGUI(ParticleSystem s) { if (ColorByVelocityModuleUI.s_Texts == null) ColorByVelocityModuleUI.s_Texts = new ColorByVelocityModuleUI.Texts(); this.GUIMinMaxGradient(ColorByVelocityModuleUI.s_Texts.color, this.m_Gradient); ModuleUI.GUIMinMaxRange(ColorByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); }
public override void OnInspectorGUI(ParticleSystem s) { if (ColorByVelocityModuleUI.s_Texts == null) { ColorByVelocityModuleUI.s_Texts = new ColorByVelocityModuleUI.Texts(); } this.GUIMinMaxGradient(ColorByVelocityModuleUI.s_Texts.color, this.m_Gradient); ModuleUI.GUIMinMaxRange(ColorByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); }
public override void OnInspectorGUI(InitialModuleUI initial) { if (ColorByVelocityModuleUI.s_Texts == null) { ColorByVelocityModuleUI.s_Texts = new ColorByVelocityModuleUI.Texts(); } base.GUIMinMaxGradient(ColorByVelocityModuleUI.s_Texts.color, this.m_Gradient, false, new GUILayoutOption[0]); ModuleUI.GUIMinMaxRange(ColorByVelocityModuleUI.s_Texts.velocityRange, this.m_Range, new GUILayoutOption[0]); }
protected override void Init() { if (this.m_Gradient == null) { if (ColorByVelocityModuleUI.s_Texts == null) { ColorByVelocityModuleUI.s_Texts = new ColorByVelocityModuleUI.Texts(); } this.m_Gradient = new SerializedMinMaxGradient(this); this.m_Gradient.m_AllowColor = false; this.m_Gradient.m_AllowRandomBetweenTwoColors = false; this.m_Range = base.GetProperty("range"); } }