MCPcopy Create free account
hub / github.com/esengine/esengine / setSceneLocal

Method setSceneLocal

packages/core/src/ECS/Entity.ts:236–239  ·  view source on GitHub ↗

* @zh 设置实体为场景本地(随场景销毁),恢复默认行为 * @en Mark entity as scene-local (destroyed with scene), restores default behavior * * @returns @zh this,支持链式调用 @en Returns this for chaining

()

Source from the content-addressed store, hash-verified

234 * @returns @zh this,支持链式调用 @en Returns this for chaining
235 */
236 public setSceneLocal(): this {
237 this._lifecyclePolicy = EEntityLifecyclePolicy.SceneLocal;
238 return this;
239 }
240
241 /**
242 * @zh 获取销毁状态

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected