Skip to content

SpriteState (JavaScript) ​

SpriteState ​

Scripting Name:Insight.SpriteState

GUI 中 Sprite 的状态。

Properties ​


disabledSprite ​

type : Insight.Sprite

UI 被禁用时显示的 Sprite。

highLightedSprite ​

type : Insight.Sprite

UI 高亮时显示的 Sprite。

pressedSprite ​

type : Insight.Sprite

UI 被按下时显示的 Sprite。

Methods ​


toString ​

public string toString();

将 state 内容以一定格式转为 string 类型。