diff options
Diffstat (limited to 'Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs')
-rw-r--r-- | Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs b/Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs deleted file mode 100644 index 4d6144f..0000000 --- a/Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Events; -using UnityEngine.UI; - -public class UIEffect_Demo_PropertyControl : MonoBehaviour -{ - [SerializeField] private string m_PropertyName; - [SerializeField] private Object[] m_Objects; - - public void ChangeValue(int value) - { - foreach (var o in m_Objects) - { - if (!o) continue; - - var p = o.GetType().GetProperty(m_PropertyName); - Debug.LogFormat("{0} {1} {2}", o.GetType(), m_PropertyName, p); - - if (p == null) continue; - p.SetValue(o, value, new object[0]); - } - } -} |