public void HeightTexture(uint mtl_id, string name) { IntPtr ptr = Marshal.StringToHGlobalAnsi(name); MtlEditorCoreImporter.SetHeightTexture(core_, mtl_id, ptr); Marshal.FreeHGlobal(ptr); }