UnityEditor.ColorPresetLibrary.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        private void Init()
        {
            if (this.m_ColorSwatch == null)
            {
                this.m_ColorSwatch = CreateColorSwatchWithBorder(14, 14, false);
            }
            if (this.m_ColorSwatchTriangular == null)
            {
                this.m_ColorSwatchTriangular = CreateColorSwatchWithBorder(14, 14, true);
            }
            if (this.m_MiniColorSwatchTriangular == null)
            {
                this.m_MiniColorSwatchTriangular = CreateColorSwatchWithBorder(8, 8, true);
            }
            if (this.m_CheckerBoard == null)
            {
                this.m_CheckerBoard = GradientEditor.CreateCheckerTexture(2, 2, 3, new Color(0.8f, 0.8f, 0.8f), new Color(0.5f, 0.5f, 0.5f));
            }
        }