Format
typescript
Texture2D.ReleaseCPUMemory()class: Texture2D
Description
Release CPU memory
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
void |
Code Example
typescript
let uuid = "31A9092E126B4B19BBFD9D5FCD75AA49";
let tex = Resources.Load<Texture2D>(Texture2D, uuid);
if (tex == null) {
throw new Exception("failed to load texture2d: " + uuid);
}
tex.ReleaseCPUMemory();