From c8dcceefe404a46eb01ef3a5238401dc3193b178 Mon Sep 17 00:00:00 2001 From: zheng han Date: Fri, 8 Nov 2019 15:03:08 +0800 Subject: [PATCH] public InEditor Function (#5708) --- cocos/core/components/component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/core/components/component.ts b/cocos/core/components/component.ts index 5f79629c37..32fc6712bd 100644 --- a/cocos/core/components/component.ts +++ b/cocos/core/components/component.ts @@ -585,16 +585,16 @@ class Component extends CCObject { */ protected onDestroy? (): void; - protected onFocusInEditor? (): void; + public onFocusInEditor? (): void; - protected onLostFocusInEditor? (): void; + public onLostFocusInEditor? (): void; /** * @en Called to initialize the component or node’s properties when adding the component the first time or when the Reset command is used. * This function is only called in editor.
* @zh 用来初始化组件或节点的一些属性,当该组件被第一次添加到节点上或用户点击了它的 Reset 菜单时调用。这个回调只会在编辑器下调用。 */ - protected resetInEditor? (): void; + public resetInEditor? (): void; // VIRTUAL