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.