You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 12:10:08 +00:00
close #10; Add a scale property independent of transform
This commit is contained in:
@@ -58,6 +58,11 @@ namespace Coffee.UIExtensions
|
||||
EditorGUILayout.PropertyField(_spTrailParticle);
|
||||
EditorGUI.EndDisabledGroup();
|
||||
|
||||
if ((target as UIParticle).GetComponentsInParent<UIParticle> (false).Length == 1)
|
||||
{
|
||||
EditorGUILayout.PropertyField (serializedObject.FindProperty ("m_Scale"));
|
||||
}
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user