Method AllocateTextureWithoutBlit
AllocateTextureWithoutBlit(Texture, int, int, ref Vector4)
Allocate space from the atlas for a texture.
Declaration
public bool AllocateTextureWithoutBlit(Texture texture, int width, int height, ref Vector4 scaleOffset)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | Source texture. |
int | width | Request width in pixels. |
int | height | Request height in pixels. |
Vector4 | scaleOffset | Allocated scale (.xy) and offset (.zw). |
Returns
Type | Description |
---|---|
bool | True on success, false otherwise. |
AllocateTextureWithoutBlit(int, int, int, ref Vector4)
Allocate space from the atlas for a texture.
Declaration
public virtual bool AllocateTextureWithoutBlit(int instanceId, int width, int height, ref Vector4 scaleOffset)
Parameters
Type | Name | Description |
---|---|---|
int | instanceId | Source texture instance ID. |
int | width | Request width in pixels. |
int | height | Request height in pixels. |
Vector4 | scaleOffset | Allocated scale (.xy) and offset (.zw). |
Returns
Type | Description |
---|---|
bool | True on success, false otherwise. |