public override void OnInspectorGUI(ParticleSystem s)
 {
   if (VelocityModuleUI.s_Texts == null)
     VelocityModuleUI.s_Texts = new VelocityModuleUI.Texts();
   this.GUITripleMinMaxCurve(GUIContent.none, VelocityModuleUI.s_Texts.x, this.m_X, VelocityModuleUI.s_Texts.y, this.m_Y, VelocityModuleUI.s_Texts.z, this.m_Z, (SerializedProperty) null);
   ModuleUI.GUIBoolAsPopup(VelocityModuleUI.s_Texts.space, this.m_InWorldSpace, VelocityModuleUI.s_Texts.spaces);
 }
 public override void OnInspectorGUI(ParticleSystem s)
 {
     if (VelocityModuleUI.s_Texts == null)
     {
         VelocityModuleUI.s_Texts = new VelocityModuleUI.Texts();
     }
     base.GUITripleMinMaxCurve(GUIContent.none, VelocityModuleUI.s_Texts.x, this.m_X, VelocityModuleUI.s_Texts.y, this.m_Y, VelocityModuleUI.s_Texts.z, this.m_Z, null);
     ModuleUI.GUIBoolAsPopup(VelocityModuleUI.s_Texts.space, this.m_InWorldSpace, VelocityModuleUI.s_Texts.spaces);
 }
Beispiel #3
0
 public override void OnInspectorGUI(InitialModuleUI initial)
 {
     if (VelocityModuleUI.s_Texts == null)
     {
         VelocityModuleUI.s_Texts = new VelocityModuleUI.Texts();
     }
     base.GUITripleMinMaxCurve(GUIContent.none, VelocityModuleUI.s_Texts.x, this.m_X, VelocityModuleUI.s_Texts.y, this.m_Y, VelocityModuleUI.s_Texts.z, this.m_Z, null, new GUILayoutOption[0]);
     ModuleUI.GUIBoolAsPopup(VelocityModuleUI.s_Texts.space, this.m_InWorldSpace, VelocityModuleUI.s_Texts.spaces, new GUILayoutOption[0]);
 }
 protected override void Init()
 {
   if (this.m_X != null)
     return;
   if (VelocityModuleUI.s_Texts == null)
     VelocityModuleUI.s_Texts = new VelocityModuleUI.Texts();
   this.m_X = new SerializedMinMaxCurve((ModuleUI) this, VelocityModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
   this.m_Y = new SerializedMinMaxCurve((ModuleUI) this, VelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
   this.m_Z = new SerializedMinMaxCurve((ModuleUI) this, VelocityModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
   this.m_InWorldSpace = this.GetProperty("inWorldSpace");
 }
Beispiel #5
0
 protected override void Init()
 {
     if (this.m_X == null)
     {
         if (VelocityModuleUI.s_Texts == null)
         {
             VelocityModuleUI.s_Texts = new VelocityModuleUI.Texts();
         }
         this.m_X            = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
         this.m_Y            = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
         this.m_Z            = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
         this.m_InWorldSpace = base.GetProperty("inWorldSpace");
     }
 }
 protected override void Init()
 {
     if (this.m_X == null)
     {
         if (VelocityModuleUI.s_Texts == null)
         {
             VelocityModuleUI.s_Texts = new VelocityModuleUI.Texts();
         }
         this.m_X              = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.linearX, "x", ModuleUI.kUseSignedRange);
         this.m_Y              = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
         this.m_Z              = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
         this.m_OrbitalX       = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.orbitalX, "orbitalX", ModuleUI.kUseSignedRange);
         this.m_OrbitalY       = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.y, "orbitalY", ModuleUI.kUseSignedRange);
         this.m_OrbitalZ       = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.z, "orbitalZ", ModuleUI.kUseSignedRange);
         this.m_OrbitalOffsetX = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.orbitalOffsetX, "orbitalOffsetX", ModuleUI.kUseSignedRange);
         this.m_OrbitalOffsetY = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.y, "orbitalOffsetY", ModuleUI.kUseSignedRange);
         this.m_OrbitalOffsetZ = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.z, "orbitalOffsetZ", ModuleUI.kUseSignedRange);
         this.m_Radial         = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.radial, "radial", ModuleUI.kUseSignedRange);
         this.m_InWorldSpace   = base.GetProperty("inWorldSpace");
         this.m_SpeedModifier  = new SerializedMinMaxCurve(this, VelocityModuleUI.s_Texts.speedMultiplier, "speedModifier", ModuleUI.kUseSignedRange);
     }
 }