PreviewContainer
Extends: PanelContainer
Description
This class when accessed in Global.Editor.Preview is the preview of Props when hovering over the library menu.
Properties
| TextureRect | texture |
| Label | label |
| String | currentLibraryCategory |
| bool | bigPreview |
Methods
| void | Set ( Texture thumbnail, String label, String category ) |
| void | Unset ( ) |
| void | SetPreviewMaterial ( Material material ) |
Property Descriptions
- TextureRect texture:
The UI element that displays the asset image.
- Label label:
The UI element that displays the asset name.
- String currentLibraryCategory:
The category of the current library.
- bool bigPreview:
Get or set if the preview is in big format.
Method Descriptions
- void Unset ( ):
Clear the preview.
- void SetPreviewMaterial ( Material material ):
Change the material used to shade the preview.