UnityEditor.CubemapInspector.ShowFace C# (CSharp) Method

ShowFace() private method

private ShowFace ( string label, CubemapFace face ) : void
label string
face CubemapFace
return void
        private void ShowFace(string label, CubemapFace face)
        {
            Cubemap target = base.target as Cubemap;
            int index = (int) face;
            GUI.changed = false;
            Texture2D textureRef = (Texture2D) ObjectField(label, this.m_Images[index], typeof(Texture2D), false, new GUILayoutOption[0]);
            if (GUI.changed)
            {
                TextureUtil.CopyTextureIntoCubemapFace(textureRef, target, face);
                this.m_Images[index] = textureRef;
            }
        }
    }