private CopyTextureIntoCubemapFace ( |
||
textureRef | ||
cubemapRef | ||
face | CubemapFace | |
return | void |
public static extern void CopyTextureIntoCubemapFace(Texture2D textureRef, Cubemap cubemapRef, CubemapFace face);
[MethodImpl(MethodImplOptions.InternalCall)]
private void ShowFace(string label, CubemapFace face) { Cubemap cubemapRef = base.target as Cubemap; GUI.changed = false; Texture2D texture2D = (Texture2D)CubemapInspector.ObjectField(label, this.m_Images[(int)face], typeof(Texture2D), false, new GUILayoutOption[0]); if (GUI.changed) { TextureUtil.CopyTextureIntoCubemapFace(texture2D, cubemapRef, face); this.m_Images[(int)face] = texture2D; } }