merge
merge and property
This commit is contained in:
@@ -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}");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user