UnityEngine.Texture2D.Apply C# (CSharp) Method

Apply() private method

private Apply ( [ updateMipmaps, [ makeNoLongerReadable ) : void
updateMipmaps [
makeNoLongerReadable [
return void
        public extern void Apply([DefaultValue("true")] bool updateMipmaps, [DefaultValue("false")] bool makeNoLongerReadable);
        /// <summary>

Same methods

Texture2D::Apply ( ) : void
Texture2D::Apply ( bool updateMipmaps ) : void

Usage Example

 /// <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