diff --git a/cocos/spine/skeleton.ts b/cocos/spine/skeleton.ts index c27c2ef7b05..44abd31363c 100644 --- a/cocos/spine/skeleton.ts +++ b/cocos/spine/skeleton.ts @@ -22,7 +22,7 @@ THE SOFTWARE. */ import { EDITOR_NOT_IN_PREVIEW, JSB } from 'internal:constants'; -import { ccclass, executeInEditMode, help, menu, serializable, type, displayName, override, displayOrder, editable, tooltip } from 'cc.decorator'; +import { ccclass, executeInEditMode, help, menu, serializable, type, override, displayOrder, editable, visible } from 'cc.decorator'; import { Material, Texture2D } from '../asset/assets'; import { error, logID, warn } from '../core/platform/debug'; import { Enum, EnumType, ccenum } from '../core/value-types/enum'; @@ -373,6 +373,7 @@ export class Skeleton extends UIRenderer { /** * @engineInternal */ + @visible(true) @type(DefaultSkinsEnum) get _defaultSkinIndex (): number { if (this.skeletonData) { @@ -422,6 +423,7 @@ export class Skeleton extends UIRenderer { /** * @engineInternal */ + @visible(true) @type(SpineDefaultAnimsEnum) get _animationIndex (): number { const animationName = EDITOR_NOT_IN_PREVIEW ? this.defaultAnimation : this.animation;