Abstract Class: ScenegraphAsset
Defined in: modules/engine/src/scenegraph/scenegraph.ts:15
Prepared source for repeated placements. Instances borrow the source from its owner.
Extends
Resource
Constructors
Constructor
new ScenegraphAsset():
ScenegraphAsset
Returns
ScenegraphAsset
Inherited from
Resource.constructor
Accessors
destroyed
Get Signature
get destroyed():
boolean
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:14
Whether destruction has completed, including when cleanup reported an error.
Returns
boolean
Inherited from
Resource.destroyed
ownedResources
Get Signature
get ownedResources(): readonly
Resource[]
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:12
A snapshot of this resource's children. Mutating the snapshot cannot change ownership.
Returns
readonly Resource[]
Inherited from
Resource.ownedResources
owner
Get Signature
get owner():
Resource|null
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:10
The resource responsible for destroying this resource, or null for caller-managed lifetime.
Returns
Resource | null
Inherited from
Resource.owner
Methods
[dispose]()
[dispose]():
void
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:18
Destroy the resource when leaving a using scope.
Returns
void
Inherited from
Resource.[dispose]
attachResource()
attachResource(
resource):void
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:24
Parameters
resource
Resource
Returns
void
Deprecated
Use resource.transferOwnershipTo(this).
Inherited from
Resource.attachResource
createBatch()
abstractcreateBatch():ScenegraphBatch
Defined in: modules/engine/src/scenegraph/scenegraph.ts:17
Create the rendering state shared by placements in one scenegraph.
Returns
delete()
delete():
this
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:22
Returns
this
Deprecated
Use destroy().
Inherited from
Resource.delete
destroy()
destroy():
void
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:20
Destroy children before this resource. Subclasses implement hooks instead of overriding.
Returns
void
Inherited from
Resource.destroy
destroyAttachedResource()
destroyAttachedResource(
resource):void
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:28
Parameters
resource
Resource
Returns
void
Deprecated
Check resource.owner and call resource.destroy().
Inherited from
Resource.destroyAttachedResource
destroyAttachedResources()
destroyAttachedResources():
void
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:30
Returns
void
Deprecated
Destroy individually owned resources, or destroy the owner.
Inherited from
Resource.destroyAttachedResources
detachResource()
detachResource(
resource):void
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:26
Parameters
resource
Resource
Returns
void
Deprecated
Use resource.transferOwnershipTo(null). Only detaches a child owned by this.
Inherited from
Resource.detachResource
transferOwnershipTo()
transferOwnershipTo(
owner):this
Defined in: modules/core/dist/api/adapter/resources/resource.d.ts:16
Transfer exclusive ownership, or return lifetime responsibility to the caller with null.
Parameters
owner
Resource | null
Returns
this
Inherited from
Resource.transferOwnershipTo