diff --git a/cocos/3d/framework/camera-component.ts b/cocos/3d/framework/camera-component.ts index 7b11155f92..56b432bf1c 100644 --- a/cocos/3d/framework/camera-component.ts +++ b/cocos/3d/framework/camera-component.ts @@ -204,7 +204,7 @@ export class CameraComponent extends Component { * @zh 相机的颜色缓冲默认值。 */ @property - @constget + // @constget get color (): Readonly { return this._color; } diff --git a/cocos/3d/framework/light-component.ts b/cocos/3d/framework/light-component.ts index 953cdac1c7..f4985376f8 100644 --- a/cocos/3d/framework/light-component.ts +++ b/cocos/3d/framework/light-component.ts @@ -61,7 +61,7 @@ export class LightComponent extends Component { * 光源颜色。 */ @property - @constget + // @constget get color (): Readonly { return this._color; } diff --git a/cocos/3d/ui/components/button-component.ts b/cocos/3d/ui/components/button-component.ts index 020a04cac2..402519d705 100644 --- a/cocos/3d/ui/components/button-component.ts +++ b/cocos/3d/ui/components/button-component.ts @@ -196,7 +196,7 @@ export class ButtonComponent extends Component { * 普通状态下按钮所显示的颜色。 */ @property - @constget + // @constget get normalColor (): Readonly { return this._normalColor; } @@ -215,7 +215,7 @@ export class ButtonComponent extends Component { * 按下状态时按钮所显示的颜色。 */ @property - @constget + // @constget get pressedColor (): Readonly { return this._pressColor; } @@ -233,7 +233,7 @@ export class ButtonComponent extends Component { * 悬停状态下按钮所显示的颜色。 */ @property - @constget + // @constget get hoverColor (): Readonly { return this._hoverColor; } @@ -250,7 +250,7 @@ export class ButtonComponent extends Component { * 禁用状态下按钮所显示的颜色。 */ @property - @constget + // @constget get disabledColor (): Readonly { return this._disabledColor; } diff --git a/cocos/3d/ui/components/graphics-component.ts b/cocos/3d/ui/components/graphics-component.ts index a95de2bcdc..7ae2e4bbac 100644 --- a/cocos/3d/ui/components/graphics-component.ts +++ b/cocos/3d/ui/components/graphics-component.ts @@ -111,7 +111,7 @@ export class GraphicsComponent extends UIRenderComponent { * 线段颜色。 */ @property - @constget + // @constget get strokeColor (): Readonly { return this._strokeColor; } @@ -130,7 +130,7 @@ export class GraphicsComponent extends UIRenderComponent { * 填充颜色。 */ @property - @constget + // @constget get fillColor (): Readonly { return this._fillColor; } diff --git a/cocos/3d/ui/components/label-outline-component.ts b/cocos/3d/ui/components/label-outline-component.ts index 8aabe42498..22d9b039bc 100644 --- a/cocos/3d/ui/components/label-outline-component.ts +++ b/cocos/3d/ui/components/label-outline-component.ts @@ -68,7 +68,7 @@ export class LabelOutlineComponent extends Component { * ``` */ @property - @constget + // @constget get color (): Readonly { return this._color; } diff --git a/cocos/3d/ui/components/layout-component.ts b/cocos/3d/ui/components/layout-component.ts index 2e5cc1ea98..e947a40603 100644 --- a/cocos/3d/ui/components/layout-component.ts +++ b/cocos/3d/ui/components/layout-component.ts @@ -217,7 +217,7 @@ export class LayoutComponent extends Component { * 每个格子的大小,只有布局类型为 GRID 的时候才有效。 */ @property - @constget + // @constget get cellSize (): Readonly { return this._cellSize; } diff --git a/cocos/3d/ui/components/mask-component.ts b/cocos/3d/ui/components/mask-component.ts index fb664da074..b170b58078 100644 --- a/cocos/3d/ui/components/mask-component.ts +++ b/cocos/3d/ui/components/mask-component.ts @@ -238,7 +238,7 @@ export class MaskComponent extends UIRenderComponent { visible: false, override: true, }) - @constget + // @constget get color (): Readonly { return this._color; } diff --git a/cocos/3d/ui/components/ui-render-component.ts b/cocos/3d/ui/components/ui-render-component.ts index 4893294701..65453af227 100644 --- a/cocos/3d/ui/components/ui-render-component.ts +++ b/cocos/3d/ui/components/ui-render-component.ts @@ -142,7 +142,7 @@ export class UIRenderComponent extends UIComponent { @property({ displayOrder: 2, }) - @constget + // @constget get color (): Readonly { return this._color; } diff --git a/cocos/3d/ui/components/ui-transfrom-component.ts b/cocos/3d/ui/components/ui-transfrom-component.ts index 258ae972ad..73cca028e4 100644 --- a/cocos/3d/ui/components/ui-transfrom-component.ts +++ b/cocos/3d/ui/components/ui-transfrom-component.ts @@ -61,7 +61,7 @@ export class UITransformComponent extends Component { @property({ displayOrder: 0, }) - @constget + // @constget get contentSize (): Readonly { return this._contentSize; } @@ -139,7 +139,7 @@ export class UITransformComponent extends Component { @property({ displayOrder: 1, }) - @constget + // @constget get anchorPoint (): Readonly { return this._anchorPoint; } diff --git a/cocos/scene-graph/node.ts b/cocos/scene-graph/node.ts index be37bfdb38..11583af964 100644 --- a/cocos/scene-graph/node.ts +++ b/cocos/scene-graph/node.ts @@ -411,7 +411,7 @@ export class Node extends BaseNode { * @zh * 本地坐标 */ - @constget + // @constget public get position (): Readonly { return this._lpos; } @@ -487,7 +487,7 @@ export class Node extends BaseNode { * @zh * 本地旋转 */ - @constget + // @constget public get rotation (): Readonly { return this._lrot; } @@ -542,7 +542,7 @@ export class Node extends BaseNode { * @zh * 本地缩放 */ - @constget + // @constget public get scale (): Readonly { return this._lscale; } @@ -609,7 +609,7 @@ export class Node extends BaseNode { * @zh * 世界坐标 */ - @constget + // @constget public get worldPosition (): Readonly { this.updateWorldTransform(); return this._pos; @@ -696,7 +696,7 @@ export class Node extends BaseNode { * @zh * 世界旋转 */ - @constget + // @constget public get worldRotation (): Readonly { this.updateWorldTransform(); return this._rot; @@ -758,7 +758,7 @@ export class Node extends BaseNode { * @zh * 世界缩放 */ - @constget + // @constget public get worldScale (): Readonly { this.updateWorldTransform(); return this._scale; @@ -782,7 +782,7 @@ export class Node extends BaseNode { * @zh * 世界变换矩阵 */ - @constget + // @constget public get worldMatrix (): Readonly { this.updateWorldTransformFull(); return this._mat;