Method IsCached
IsCached(out Vector4, Texture, Texture)
Check if the atlas contains the textures.
Declaration
public bool IsCached(out Vector4 scaleOffset, Texture textureA, Texture textureB)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | scaleOffset | Texture scale (.xy) and offset (.zw). |
Texture | textureA | Source texture A. |
Texture | textureB | Source texture B. |
Returns
Type | Description |
---|---|
bool | True if the texture is in the atlas, false otherwise. |
IsCached(out Vector4, Texture)
Check if the atlas contains the textures.
Declaration
public bool IsCached(out Vector4 scaleOffset, Texture texture)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | scaleOffset | Texture scale (.xy) and offset (.zw). |
Texture | texture | Source texture |
Returns
Type | Description |
---|---|
bool | True if the texture is in the atlas, false otherwise. |
IsCached(out Vector4, int)
Check if the atlas contains the texture.
Declaration
public bool IsCached(out Vector4 scaleOffset, int id)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | scaleOffset | Texture scale (.xy) and offset (.zw). |
int | id | Source texture instance ID. |
Returns
Type | Description |
---|---|
bool |