Exemplo n.º 1
0
        static bool Prepare(object instance)
        {
            try
            {
                Method        = AccessToolsShim.Method(ClrTypes.UnityEventBase, "PrepareInvoke");
                DefaultResult = Activator.CreateInstance(typeof(List <>).MakeGenericType(ClrTypes.BaseInvokableCall));

                return(Method != null);
            }
            catch
            {
            }

            return(false);
        }
Exemplo n.º 2
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(ClrTypes.UnityEventBase, "Invoke", new Type[] { typeof(object[]) }));
 }
Exemplo n.º 3
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoToggle", new[] { typeof(Rect), typeof(int), typeof(bool), typeof(GUIContent), typeof(GUIStyle) }));
 }
Exemplo n.º 4
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoWindow", new[] { typeof(int), typeof(Rect), typeof(WindowFunction), typeof(GUIContent), typeof(GUIStyle), typeof(GUISkin), typeof(bool) }));
 }
Exemplo n.º 5
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoRepeatButton", new[] { typeof(Rect), typeof(GUIContent), typeof(GUIStyle), typeof(FocusType) }));
 }
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Transform.ClrType, "SetParent", new Type[] { UnityTypes.Transform.ClrType, typeof(bool) }));
 }
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Object.ClrType, "Internal_CloneSingle", new Type[] { typeof(UnityEngine.Object) }));
 }
Exemplo n.º 8
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.UguiNovelTextGenerator?.ClrType, "LengthOfView").GetSetMethod(true));
 }
Exemplo n.º 9
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.Image?.ClrType, "overrideSprite")?.GetSetMethod());
 }
Exemplo n.º 10
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.MaskableGraphic?.ClrType, "OnEnable"));
 }
Exemplo n.º 11
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(typeof(Material), "mainTexture")?.GetSetMethod());
 }
Exemplo n.º 12
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.CubismRenderer.ClrType, "TryInitialize"));
 }
Exemplo n.º 13
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.CubismRenderer.ClrType, "MainTexture")?.GetSetMethod());
 }
Exemplo n.º 14
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.SpriteRenderer?.ClrType, "sprite")?.GetSetMethod());
 }
Exemplo n.º 15
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.TextArea2D.ClrType, "TextData")?.GetSetMethod());
 }
Exemplo n.º 16
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.RawImage?.ClrType, "texture")?.GetSetMethod());
 }
Exemplo n.º 17
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.AdvEngine?.ClrType, "JumpScenario", new Type[] { typeof(string) }));
 }
Exemplo n.º 18
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(typeof(Cursor), "SetCursor", new[] { typeof(Texture2D), typeof(Vector2), typeof(CursorMode) }));
 }
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Object.ClrType, "Internal_InstantiateSingle", new Type[] { typeof(UnityEngine.Object), typeof(Vector3), typeof(Quaternion) }));
 }
Exemplo n.º 20
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.DicingTextures?.ClrType, "GetTexture", new[] { typeof(string) }));
 }
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Object.ClrType, "Internal_CloneSingleWithParent", new Type[] { typeof(UnityEngine.Object), typeof(Transform), typeof(bool) }));
 }
Exemplo n.º 22
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.UIRect?.ClrType, "OnInit"));
 }
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GameObject.ClrType, "Internal_AddComponentWithType", new Type[] { typeof(Type) }));
 }
Exemplo n.º 24
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.UI2DSprite?.ClrType, "material")?.GetSetMethod());
 }
Exemplo n.º 25
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoButton", new[] { typeof(Rect), typeof(GUIContent), typeof(IntPtr) }));
 }
Exemplo n.º 26
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.UIPanel.ClrType, "clipTexture")?.GetSetMethod());
 }
Exemplo n.º 27
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoButtonGrid", new[] { typeof(Rect), typeof(int), typeof(GUIContent[]), typeof(string[]), typeof(int), typeof(GUIStyle), typeof(GUIStyle), typeof(GUIStyle), typeof(GUIStyle), UnityTypes.GUI_ToolbarButtonSize.ClrType, typeof(bool[]) }));
 }
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.TMP_Text.ClrType, "text")?.GetGetMethod());
 }
Exemplo n.º 29
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "BeginGroup", new[] { typeof(Rect), typeof(GUIContent), typeof(GUIStyle), typeof(Vector2) }));
 }
Exemplo n.º 30
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(ClrTypes.AdvPage, "RemakeTextData"));
 }