diff options
author | chai <chaifix@163.com> | 2021-04-07 21:13:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-04-07 21:13:03 +0800 |
commit | d69611d66431e28ea35477c6781a00d57ae04fa3 (patch) | |
tree | c76b3147642a6d1749406f25f2fdacce4ba7a272 /Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs | |
parent | c7e2d8f773baa3955f17402b842eb43329c5f3a0 (diff) |
*因为没有meta,导致missing,删除UIEffect
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]); - } - } -} |