merge and property
This commit is contained in:
2025-12-24 17:36:01 +09:00
parent d4764e304f
commit 6b78b68229
109 changed files with 14167 additions and 625 deletions

View File

@@ -30,6 +30,8 @@ namespace SampleProject
[SerializeField]
private TopMenuController sideMenu;
[SerializeField]
private PropertyWindow propertyWindow;
public Action Initialized;
/// <summary>
@@ -182,7 +184,7 @@ namespace SampleProject
topMenu.AddMenuItem(new MenuItemData("Settings", "Settings", new SettingOpenCommand()));
topMenu.AddMenuItem(new MenuItemData("PropertyWindow", "PropertyWindow", new ActionCommand(async () =>
{
PropertyWindow.Instance.Show();
propertyWindow.Show();
})));
topMenu.Initialize();
@@ -238,7 +240,7 @@ namespace SampleProject
private void SetupPropertyWindow()
{
PropertyWindow.Instance.LoadProperties(new List<IPropertyItem>
propertyWindow.LoadProperties(new List<IPropertyItem>
{
new StringProperty("prop1", "String Property", "Initial Value")
{
@@ -338,7 +340,7 @@ namespace SampleProject
}
});
PropertyWindow.Instance.PropertyValueChanged += (sender, e) =>
propertyWindow.PropertyValueChanged += (sender, e) =>
{
Debug.Log($"Property Id:{e.PropertyId}, type:{e.PropertyType}, newValue: {e.NewValue}");
};