When an object's destroy is called, it is actually destroyed after the end of this frame.So isValid will return false from the next frame, while isValid in the current frame will still be true.If you want to determine whether the current frame has called destroy, use isValid(obj, true...
Optimized the frequency of parsing JSON for Skeleton-Asset. Fixed errors in the PhysicsContract.emit function when Collider did not have a rigid body. Fixed rendering errors for non-UI images in TextureRender on native platforms. Fixed an issue introduced in this version where updates to the chi...
log(node.isValid); // false, destroyed in the end of last frame Returns boolean name get name(): string set name(value: string): void Inherited from Component.name Overrides RenderTexture.name Defined in cocos/core/components/component.ts:66 Returns string uuid get uuid(): string Inherited...
Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment. - cocos-engine/cocos/ga
Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment. - cocos-engine/cocos/ga
Q:After you upgrade the VS Code, an error occurs when Creator adds a compilation task: Task version 0.1.0 is deprecated. Please use 2.0.0 (4, 5). A: This problem is caused by theVS Code upgrade compilation task system. The current solution is to first modify the code in the original...
* It was defined as EVENT_RENDERER_INITED in cocos creator v1.x and renamed in v2.0 * @property EVENT_ENGINE_INITED * @constant * @type {String} */ EVENT_ENGINE_INITED: "engine_inited", // deprecated EVENT_RENDERER_INITED: "engine_inited", ...
[FIX] EventCustom shouldn't use std::hash to generate unique ID, because the result is not unique [FIX] CC_USE_PHYSICS is actually impossible to turn it off [FIX] Crash if connection breaks during download using AssetManager [FIX] Project_creator supports creating project at any folder...
[FIX] Project_creator supports creating project at any folder and supports UI [Android] [NEW] build/android-build.sh: add supporting to generate .apk file [NEW] Bindings-generator supports to bind 'unsigned long'. [FIX] XMLHttpRequest receives wrong binary array. [FIX] 'Test Frame Event' ...
Whether if crossFade() or play() has been called before this component starts. _nameToState protected 方法 stop public 停止所有动画状态,并停止所有切换。 resume public 恢复所有动画状态,并恢复所有切换。 removeState public 停止并移除指定的动画状态。 removeClip public 从动画列表中移除指定的动画...