コード例 #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);
        }
コード例 #2
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(ClrTypes.UnityEventBase, "Invoke", new Type[] { typeof(object[]) }));
 }
コード例 #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) }));
 }
コード例 #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) }));
 }
コード例 #5
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoRepeatButton", new[] { typeof(Rect), typeof(GUIContent), typeof(GUIStyle), typeof(FocusType) }));
 }
コード例 #6
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Transform.ClrType, "SetParent", new Type[] { UnityTypes.Transform.ClrType, typeof(bool) }));
 }
コード例 #7
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Object.ClrType, "Internal_CloneSingle", new Type[] { typeof(UnityEngine.Object) }));
 }
コード例 #8
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.UguiNovelTextGenerator?.ClrType, "LengthOfView").GetSetMethod(true));
 }
コード例 #9
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.Image?.ClrType, "overrideSprite")?.GetSetMethod());
 }
コード例 #10
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.MaskableGraphic?.ClrType, "OnEnable"));
 }
コード例 #11
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(typeof(Material), "mainTexture")?.GetSetMethod());
 }
コード例 #12
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.CubismRenderer.ClrType, "TryInitialize"));
 }
コード例 #13
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.CubismRenderer.ClrType, "MainTexture")?.GetSetMethod());
 }
コード例 #14
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.SpriteRenderer?.ClrType, "sprite")?.GetSetMethod());
 }
コード例 #15
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.TextArea2D.ClrType, "TextData")?.GetSetMethod());
 }
コード例 #16
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.RawImage?.ClrType, "texture")?.GetSetMethod());
 }
コード例 #17
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.AdvEngine?.ClrType, "JumpScenario", new Type[] { typeof(string) }));
 }
コード例 #18
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(typeof(Cursor), "SetCursor", new[] { typeof(Texture2D), typeof(Vector2), typeof(CursorMode) }));
 }
コード例 #19
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Object.ClrType, "Internal_InstantiateSingle", new Type[] { typeof(UnityEngine.Object), typeof(Vector3), typeof(Quaternion) }));
 }
コード例 #20
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.DicingTextures?.ClrType, "GetTexture", new[] { typeof(string) }));
 }
コード例 #21
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.Object.ClrType, "Internal_CloneSingleWithParent", new Type[] { typeof(UnityEngine.Object), typeof(Transform), typeof(bool) }));
 }
コード例 #22
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.UIRect?.ClrType, "OnInit"));
 }
コード例 #23
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GameObject.ClrType, "Internal_AddComponentWithType", new Type[] { typeof(Type) }));
 }
コード例 #24
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.UI2DSprite?.ClrType, "material")?.GetSetMethod());
 }
コード例 #25
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "DoButton", new[] { typeof(Rect), typeof(GUIContent), typeof(IntPtr) }));
 }
コード例 #26
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.UIPanel.ClrType, "clipTexture")?.GetSetMethod());
 }
コード例 #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[]) }));
 }
コード例 #28
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Property(UnityTypes.TMP_Text.ClrType, "text")?.GetGetMethod());
 }
コード例 #29
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(UnityTypes.GUI.ClrType, "BeginGroup", new[] { typeof(Rect), typeof(GUIContent), typeof(GUIStyle), typeof(Vector2) }));
 }
コード例 #30
0
 static MethodBase TargetMethod(object instance)
 {
     return(AccessToolsShim.Method(ClrTypes.AdvPage, "RemakeTextData"));
 }