From d69611d66431e28ea35477c6781a00d57ae04fa3 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 7 Apr 2021 21:13:03 +0800 Subject: =?UTF-8?q?*=E5=9B=A0=E4=B8=BA=E6=B2=A1=E6=9C=89meta=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4missing=EF=BC=8C=E5=88=A0=E9=99=A4UIEffect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/Demo/UIEffect_Demo_PropertyControl.cs | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs (limited to 'Assets/Test/UIEffect/Samples/Demo/UIEffect_Demo_PropertyControl.cs') 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]); - } - } -} -- cgit v1.1-26-g67d0