
Public class ExampleEditorScript : MonoBehaviour The following example is an Editor script that creates an instance of the Texture3D class, populates it with color data, and then saves it to your Project as a serialized asset file. Use this class to interact with 3D textures in C# scripts A piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. Unity uses the Texture3D class to represent 3D textures. Flipbook image as a 3D shape Creating a 3D texture from a script

The maximum resolution of a 3D texture is 2048 x 2048 x 2048.īe aware that the size of a 3D texture in memory and on disk increases quickly as its resolution increases.

More info See in Glossary, or to store animated textures and blend between them smoothly. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. Unity supports triangulated or Quadrangulated polygon meshes.

Meshes make up a large part of your 3D worlds.

3D textures are commonly used to simulate volumetric effects such as fog or smoke, to approximate a volumetric 3D mesh The main graphics primitive of Unity. A 3D texture is a bitmap image that contains information in three dimensions rather than the standard two.
