Experimental: this API is experimental and might be changed or removed in the future.

ISpriteEditor.SetPreviewTexture

Cambiar al Manual
public void SetPreviewTexture (Texture2D texture, int width, int height);

Parámetros

textureThe custom preview texture.
widthThe width dimension to render the preview texture.
heightThe height dimension to render the preview texture.

Descripción

Sets a custom texture to be used by the ISpriteEditor during setup of the editing space.

When the method is called, the editing space's dimensions are set to the width and height values, affecting operations such as Zoom and Pan in the ISpriteEditor view. The preview texture is rendered as the background of the editing space.