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
19 lines
412 B
C#
19 lines
412 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class PropertyLabel : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI Name;
|
|
public TextMeshProUGUI Value;
|
|
public Func<string> ValueFunction;
|
|
public FlatFlatButton Button;
|
|
|
|
private void Update()
|
|
{
|
|
if(ValueFunction != null)
|
|
Value.text = ValueFunction();
|
|
}
|
|
}
|