DI 추가
This commit is contained in:
@@ -7,6 +7,9 @@ using UVC.Util;
|
||||
|
||||
public class PropertyWindowSample : MonoBehaviour
|
||||
{
|
||||
|
||||
[SerializeField] private PropertyWindow propertyWindow;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
@@ -75,16 +78,16 @@ public class PropertyWindowSample : MonoBehaviour
|
||||
}
|
||||
};
|
||||
|
||||
PropertyWindow.Instance.LoadMixedProperties(entries);
|
||||
propertyWindow.LoadMixedProperties(entries);
|
||||
|
||||
// 값 변경 이벤트 핸들러
|
||||
PropertyWindow.Instance.PropertyValueChanged += (sender, e) =>
|
||||
propertyWindow.PropertyValueChanged += (sender, e) =>
|
||||
{
|
||||
Debug.Log($"[PropertyChanged] Id:{e.PropertyId}, Type:{e.PropertyType}, Value:{e.NewValue}");
|
||||
};
|
||||
|
||||
// 그룹 펼침/접힘 이벤트 핸들러
|
||||
PropertyWindow.Instance.GroupExpandedChanged += (sender, e) =>
|
||||
propertyWindow.GroupExpandedChanged += (sender, e) =>
|
||||
{
|
||||
Debug.Log($"[GroupExpanded] Group:{e.Group.GroupName}, Expanded:{e.IsExpanded}");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user