UnityEngine.Texture2D.Apply C# (CSharp) Method

Apply() private method

private Apply ( ) : void
return void
        public void Apply()
        {
            bool makeNoLongerReadable = false;
            bool updateMipmaps = true;
            this.Apply(updateMipmaps, makeNoLongerReadable);
        }

Same methods

Texture2D::Apply ( [ updateMipmaps, [ makeNoLongerReadable ) : void
Texture2D::Apply ( bool updateMipmaps ) : void

Usage Example

コード例 #1
1
 /// <summary>
 /// Initializes a new instance of the <see cref="UnityGwenRenderer"/> class.
 /// </summary>
 /// <param name="target">Unity render target.</param>
 public UnityGwenRenderer()
 {
     whiteTex = new Texture2D(1, 1);
     whiteTex.SetPixel(0, 0, UnityEngine.Color.white);
     whiteTex.Apply();
     m_ViewScale = Vector2.one;
 }
All Usage Examples Of UnityEngine.Texture2D::Apply