Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static class SCNMaterialPropertyPatch
[System.Runtime.InteropServices.DllImport ("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSend")]
public extern static void void_objc_msgSend_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1);
public static void SetContentColor (this SCNMaterialProperty materialProperty, CGColor c)
void_objc_msgSend_IntPtr (materialProperty.Handle, ObjCRuntime.Selector.GetHandle ("setContents:"), c.Handle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment