[C#] [Unity] [Reflection] InvokeMember & GetField
Examples using Refection: 1. SetProperty example:
uipanel.GetType ().InvokeMember ("baseClipRegion",
BindingFlags.Instance | BindingFlags.Public | BindingFlags.SetProperty,
System.Type.DefaultBinder, uipanel, new object[]{new Vector4 (0, 0, width, height)});
2. Access public-property example:
uianchor.GetType ().GetField ("runOnlyOnce").SetValue (uianchor, false);









