Resource class

Signature:

export declare class Resource<Data extends ResourceData = ResourceData> 

Constructors

Constructor

Modifiers

Description

(constructor)(opts)

Constructs a new instance of the Resource class

Properties

Property

Modifiers

Type

Description

_data

protected

Data

_resourceFactory

ResourceFactory<any>

_state

protected

ResourceState

base

readonly

any

data

readonly

Data

hasComponentFactory

readonly

boolean

id

readonly

string

isComponent

readonly

boolean

parent

readonly

any

space

readonly

Space

state

readonly

ResourceState

Methods

Method

Modifiers

Description

dependsOn(resource)

destroy()

dispose()

getDependentResources()

getDirectInstances()

getInstances()

getRequiredResources()

hasDependentComponents()

hasDependentResources()

hasReferences()

isDirectTypeOf(data)

isPrefab()

isRefByComponent(data)

isRefByResource(r)

isScript()

isTypeOf(data)

onDispose()