property menu population functional

This commit is contained in:
minenice55
2022-09-03 19:10:27 -04:00
parent b84dc9a2de
commit 87a51dd302
4 changed files with 226 additions and 51 deletions

View File

@ -17,7 +17,7 @@ namespace HeavenStudio.Editor
[SerializeField] private GameObject ColorP;
[SerializeField] private GameObject StringP;
public void AddParam(RemixPropertiesDialog diag, string propertyName, object type, string caption, string tooltip = "")
public void AddParam(RemixPropertiesDialog diag, string propertyName, object type, string caption, bool isReadOnly = false, string tooltip = "")
{
GameObject prefab = IntegerP;
GameObject input;
@ -92,6 +92,9 @@ namespace HeavenStudio.Editor
public override void OnCloseTab()
{
foreach (Transform child in propertyHolder.transform) {
Destroy(child.gameObject);
}
}
}
}