private static void Internal_DrawMeshNow1_Injected(Mesh mesh, int subsetIndex, ref Vector3 position, ref Quaternion rotation) { if ((mesh == null) || (mesh.Pointer == IntPtr.Zero)) { return; } fd_Internal_DrawMeshNow1_Injected(UnityInternals.ObjectBaseToPtr(mesh), subsetIndex, ref position, ref rotation); }
public unsafe static IntPtr GetBuiltinResource(Il2CppSystem.Type type, string path) { void **ptr = stackalloc void *[2]; ptr[0] = (void *)UnityInternals.ObjectBaseToPtr(type); ptr[1] = (void *)UnityInternals.ManagedStringToInternal(path); IntPtr returnedException = default; MelonDebug.Msg("Calling runtime_invoke for GetBuiltinResource"); IntPtr objectPointer = UnityInternals.runtime_invoke(m_GetBuiltinResource, IntPtr.Zero, ptr, ref returnedException); MelonDebug.Msg("returnedException: " + returnedException + ", objectPointer: " + objectPointer); Il2CppException.RaiseExceptionIfNecessary(returnedException); return(objectPointer); }
private static void Internal_DrawMeshNow1_Injected(Mesh mesh, int subsetIndex, ref Vector3 position, ref Quaternion rotation) => fd_Internal_DrawMeshNow1_Injected(UnityInternals.ObjectBaseToPtr(mesh), subsetIndex, ref position, ref rotation);