Documentation / Node reference / code nodes
code/TextureSize
Gives the size of a texture, in pixels.
Texture
Gives the width and height of a texture, and its depth for a 3D texture. Use it to turn a pixel index into a uv that follows the texture's size.
Parameters
| Name | Type | What it does |
|---|---|---|
| specifyMipMapLevel | Bool | Give the size of one mip level instead. |
| mipMapLevel | SInt32 | Which mip level. Each level is half the previous. |
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.