SetPixel









How do I use Set Pixel
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets

Line Code Ex..
153 tex.SetPixel( 0, 0, color ); 1

File name: ReorderableListResources.cs Copy
147         public static Texture2D CreatePixelTexture( string name, Color color )
148         {
149             var tex = new Texture2D( 1, 1, TextureFormat.ARGB32, false, true );
150             tex.name = name;
151             tex.hideFlags = HideFlags.HideAndDontSave;
152             tex.filterMode = FilterMode.Point;
153             tex.SetPixel( 0, 0, color );
154             tex.Apply();
155             return tex;
156         }

SetPixel 119 lượt xem

Gõ tìm kiếm nhanh...