close #10; Add a scale property independent of transform

This commit is contained in:
mob-sakai
2018-11-21 23:00:55 +09:00
parent b6f23013f8
commit 61212545c7
2 changed files with 28 additions and 8 deletions

View File

@@ -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();
}