parent
f526671826
commit
8034228713
|
@ -204,12 +204,10 @@ namespace Coffee.UIExtensions
|
||||||
};
|
};
|
||||||
|
|
||||||
// On select UIParticle, refresh particles.
|
// On select UIParticle, refresh particles.
|
||||||
if (!Application.isPlaying)
|
foreach (UIParticle t in targets)
|
||||||
{
|
{
|
||||||
foreach (UIParticle t in targets)
|
if (Application.isPlaying || PrefabUtility.GetPrefabAssetType(t) != PrefabAssetType.NotAPrefab) continue;
|
||||||
{
|
t.RefreshParticles(t.particles);
|
||||||
t.RefreshParticles(t.particles);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,13 +430,14 @@ namespace Coffee.UIExtensions
|
||||||
if (s_SerializedObject.targetObjects.Any(x => !x)) return;
|
if (s_SerializedObject.targetObjects.Any(x => !x)) return;
|
||||||
|
|
||||||
s_SerializedObject.Update();
|
s_SerializedObject.Update();
|
||||||
GUILayout.BeginVertical(GUILayout.Width(220f));
|
using (new EditorGUILayout.VerticalScope(GUILayout.Width(220f)))
|
||||||
var labelWidth = EditorGUIUtility.labelWidth;
|
{
|
||||||
EditorGUIUtility.labelWidth = 100;
|
var labelWidth = EditorGUIUtility.labelWidth;
|
||||||
_xyzMode = DrawFloatOrVector3Field(s_SerializedObject.FindProperty("m_Scale3D"), _xyzMode);
|
EditorGUIUtility.labelWidth = 100;
|
||||||
EditorGUILayout.PropertyField(s_SerializedObject.FindProperty("m_AbsoluteMode"));
|
_xyzMode = DrawFloatOrVector3Field(s_SerializedObject.FindProperty("m_Scale3D"), _xyzMode);
|
||||||
EditorGUIUtility.labelWidth = labelWidth;
|
EditorGUILayout.PropertyField(s_SerializedObject.FindProperty("m_AbsoluteMode"));
|
||||||
GUILayout.EndVertical();
|
EditorGUIUtility.labelWidth = labelWidth;
|
||||||
|
}
|
||||||
s_SerializedObject.ApplyModifiedProperties();
|
s_SerializedObject.ApplyModifiedProperties();
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
Loading…
Reference in New Issue