Version: Unity 6.2 Alpha (6000.2)
Language : English
Introduction to 2D texture arrays
Create a 2D texture array in a script

Create a 2D texture array

To create a 2D texture array, import a flipbook texture. A flipbook texture contains multiple textures arranged in a grid.

Follow these steps:

  1. Import the texture into your project.

  2. In the Project window, select the texture. Unity displays the texture import settings in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    window.

    An example flipbook texture.
    An example flipbook texture.
  3. In the Inspector window, set Texture Shape to 2D Array.

  4. Set Columns and Rows to the appropriate values for your flipbook texture.

  5. Select Apply.

Unity adds a texture array slice for each cell in the flipbook texture.

For more information, refer to Import a texture.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Introduction to 2D texture arrays
Create a 2D texture array in a script
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961