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

ISpriteEditor.SetPreviewTexture

マニュアルに切り替える
public void SetPreviewTexture (Texture2D texture, int width, int height);

パラメーター

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

説明

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.