[TypeScript] 修复在原生平台运行 TS 脚本时报错 ReferenceError: __extends is not defined 的问题 [Editor] 修复切换布局时报错的问题v1.5.0-beta.1[Physics] 支持 box2d 物理引擎 [Camera] 增加 Camera 组件 [Scripting] 初步支持 TypeScript [Animation] 修复使用 cc.instantiate 克隆带动画节点时,动画的 pla...
instantiate(cloned:any):any Inherited fromMissingScript.instantiate Defined incocos/core/components/component.ts:388 Parameters cloned:any Returnsany onPreDestroy _onPreDestroy():void Inherited fromMissingScript.onPreDestroy Defined incocos/core/components/component.ts:371 ...
20. Fixed issues with the incorrect implementation of scene._instantiate on native platforms. 21. Fixed crashes or freezes on non-Android platforms caused by repeated calls to `game.restart()`. 22. Fixed display errors in the scene editor when the scale is not 1 for widgets. 23. Fixed a...
publicinstantiate(prefab:IColorLike) : Node 从Prefab 实例化出新节点。 输入参数 名称类型描述 prefabIColorLikeThe prefab. 返回值:Node 示例 import{instantiate,director}from'cc';// Instantiate node from prefab.constnode=instantiate(prefabAsset);node.parent=director.getScene(); ...
_instantiate protected _onBatchCreated protected _onBeforeSerialize protected _onHierarchyChanged protected _onHierarchyChangedBase protected _onPostActivated protected _onPreDestroy protected _onPreDestroyBase protected _onSetParent protected _onSiblingIndexChanged protected _removeComponent protecte...
[FIX] Instantiate all FastDefined objects as value type (engine#11052) [FIX] Fix format feature request for Float32 for gles3 and webgl2. (engine#11084) [FIX] Fix eglSwapbuffer error due to eglSurface is not ready (engine#11083) [FIX] Disable gametick after enter background(revert to...
_instantiate protected _onPreDestroy protected lateUpdate protected 如果该组件启用,则每帧调用 LateUpdate。该方法为生命周期方法,父类未必会有实现。并且你只能在该方法内部调用父类的实现,不可在其它地方直接调用该方法。 onLoad protected 当附加到一个激活的节点上或者其节点第一次激活时候调用。onLoad 总...
The thing you want to instantiate is nil 6902 The thing you want to instantiate is destroyed 6903 The instantiate method for given asset do not implemented 6904 Can not instantiate array 6905 Can not instantiate DOM element 7000 Failed to init asset's raw path. 7001 Should not load '%s' fr...
Can not instantiate CCClass '%s' with arguments. 3618 ctor of '%s' can not be another CCClass 3619 ctor of '%s' must be function type 3620 this._super declared in '%s.%s' but no super method defined 3621 Unknown type of %s.%s, maybe you want is '%s'. 3622 Unknown type of %s....
protected _instantiate (): void { } /** Expand Down Expand Up @@ -191,9 +194,6 @@ export class Scene extends Node { } cclegacy.director._nodeActivator.activateNode(this, active); // The test environment does not currently support the renderer if (!TEST) { this._globals.activate(t...