Class Texture2DAtlas
A generic Atlas texture of 2D textures. An atlas texture is a texture collection that collects multiple sub-textures into a single big texture. Sub-texture allocation for Texture2DAtlas is static and will not change after initial allocation. Does not add mipmap padding for sub-textures.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class Texture2DAtlas
Constructors
Name | Description |
---|---|
Texture2DAtlas(int, int, Graphics |
Creates a new empty texture atlas. |
Properties
Name | Description |
---|---|
Atlas |
Handle to the texture of the atlas. |
max |
Maximum mip padding (pow2) that can be applied to the textures in the atlas |
Methods
Name | Description |
---|---|
Add |
Add a texture into the atlas. |
Allocate |
Allocate space from the atlas for a texture and copy texture contents into the atlas. |
Allocate |
Allocate space from the atlas for a texture. |
Allocate |
Allocate space from the atlas for a texture. |
Blit |
Blit and project Cube texture into a 2D texture in the atlas. |
Blit |
Blit octahedral texture into the atlas. |
Blit |
Blit 2D texture into the atlas. |
Clear |
Clear atlas texture. |
Get |
Get sub-texture ID for the atlas. |
Get |
Get sub-texture ID for the atlas. |
Is |
Check if the atlas contains the texture. |
Is |
Check if the atlas contains the textures. |
Is |
Check if the atlas contains the textures. |
Needs |
Check if contents of a texture needs to be updated in the atlas. |
Needs |
Check if contents of a texture needs to be updated in the atlas. |
Release() | Release atlas resources. |
Reset |
Clear atlas sub-texture allocations. |
Update |
Update a texture in the atlas. |
Update |
Update a texture in the atlas. |