UnityEditor.TextureUtil.CopyTextureIntoCubemapFace C# (CSharp) Method

CopyTextureIntoCubemapFace() private method

private CopyTextureIntoCubemapFace ( Texture2D textureRef, Cubemap cubemapRef, CubemapFace face ) : void
textureRef UnityEngine.Texture2D
cubemapRef UnityEngine.Cubemap
face CubemapFace
return void
        public static extern void CopyTextureIntoCubemapFace(Texture2D textureRef, Cubemap cubemapRef, CubemapFace face);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
        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;
            }
        }
All Usage Examples Of UnityEditor.TextureUtil::CopyTextureIntoCubemapFace