Super Sexy Properties Panel
Properties panel now allows nested lists with foldouts, item selection and click callbacks Properties Panel UI has a new look Refactored lambdas in control module code into methods for readability
This commit is contained in:
parent
68473a84ab
commit
50a8059ed4
43 changed files with 894 additions and 916 deletions
|
|
@ -9,9 +9,11 @@ public class PropertyLabel : MonoBehaviour
|
|||
public TextMeshProUGUI Name;
|
||||
public TextMeshProUGUI Value;
|
||||
public Func<string> ValueFunction;
|
||||
public FlatFlatButton Button;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
Value.text = ValueFunction?.Invoke() ?? "";
|
||||
if(ValueFunction != null)
|
||||
Value.text = ValueFunction();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue