feat: project-wide default view size for baking

close #360
This commit is contained in:
mob-sakai
2026-06-25 12:58:14 +09:00
parent 733901436d
commit bc5a1f4435
4 changed files with 46 additions and 10 deletions

View File

@@ -20,6 +20,15 @@ namespace Coffee.UIExtensions
set => instance.m_AutoColorCorrection = value;
}
[SerializeField]
[Tooltip("Default view size for baking particle systems.")]
private float m_DefaultViewSizeForBaking = 10;
public static float defaultViewSizeForBaking
{
get => instance.m_DefaultViewSizeForBaking;
set => instance.m_DefaultViewSizeForBaking = value;
}
[Header("Editor")]
[Tooltip("Hide the automatically generated objects.\n" +
@@ -44,6 +53,16 @@ namespace Coffee.UIExtensions
{
return new PreloadedProjectSettingsProvider("Project/UI/UI Particle");
}
[CustomEditor(typeof(UIParticleProjectSettings))]
private class UIParticleProjectSettingsEditor : Editor
{
public override void OnInspectorGUI()
{
EditorGUIUtility.labelWidth = 180;
base.OnInspectorGUI();
}
}
#endif
}
}