Method AddTexture
AddTexture(CommandBuffer, ref Vector4, Texture)
Add a texture into the atlas.
Declaration
public virtual bool AddTexture(CommandBuffer cmd, ref Vector4 scaleOffset, Texture texture)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | Command buffer used for texture copy. |
| Vector4 | scaleOffset | Sub-texture rectangle for the added texture. Scale in .xy, offset int .zw |
| Texture | texture | The texture to be added. |
Returns
| Type | Description |
|---|---|
| bool | True if the atlas contains the texture, false otherwise. |