texture-property.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. include:: ../_header.rst
  2. Texture property
  3. ----------------
  4. The |SceneEditor|_ supports a couple of object types with texture:
  5. * `Image <image-object.html>`_
  6. * `Sprite <sprite-object.html>`_
  7. * `Tile Sprite <tile-sprite-object.html>`_
  8. The |SceneEditor|_ provides an |InspectorView|_ section to set the texture of an object:
  9. .. image:: ../images/scene-editor-text-prop-02232021.webp
  10. :alt: Texture property.
  11. It shows a button with the key of the image in the |AssetPackFile|_. If the texture is taken from a texture map or sprite-sheet, then it shows that key too.
  12. To change the texture of the object, click on the button, it will open the **Select Texture** dialog. This dialog shows all the textures available in the |AssetPackFile|_, and you can select the new texture for the object.
  13. .. image:: ../images/scene-editor-texture-dialog-02232021.webp
  14. :alt: Texture dialog.
  15. You can open the dialog with the **Replace Texture** command. This command can be executed by pressing the ``X`` key, selecting it in the context menu or the `Command Palette <../workbench/command-palette.html>`_.
  16. The **Replace Texture Frame** (``M``) is a special command that allows you selecting a different texture frame for the object. It means, it will show all the frames of the same atlas (or sprite-sheet):
  17. .. image:: ../images/scene-editor-texture-frame-dialog-02232021.webp
  18. :alt: Select texture's frame.
  19. The context menu also shows the **Select All With Same Texture** command. This command selects all the objects with a texture equals to the texture of the selected object. It can help you to replace an old texture with a new texture of all the objects of a scene.
  20. .. image:: ../images/scene-editor-select-with-same-texture-02232021.webp
  21. :alt: Texture menu.
  22. The **Show Texture in Asset Pack Editor** option opens the Asset Pack File where the texture is defined.