Prefabresource

PrefabResource class

Signature:

export declare class PrefabResource extends Resource<PrefabResourceData> 

Extends: Resource<PrefabResourceData>

Constructors

Constructor

Modifiers

Description

(constructor)(opts)

Constructs a new instance of the PrefabResource class

Properties

Property

Modifiers

Type

Description

_dataWrapper

readonly

DataWrapper<any>

base

readonly

PrefabResource

children

readonly

PrefabResource[]

hasComponentFactory

readonly

boolean

isComponent

readonly

boolean

meta

readonly

{ name?: string; title?: string; description?: string; image?: string; }

opts

PrefabResourceOpts

parent

readonly

PrefabResource

Methods

Method

Modifiers

Description

_attachInstance(instance)

_detachInstance(instance, idToPrefabId)

addChild(child)

attachInstance(instance)

create(opts)

static

dependsOn(resource)

detachInstance(instance)

directExtends(resource)

dispose()

extends(resource)

getDirectVariants()

getVariants()

hasDependentComponents()

instantiate(opts)

isChildAddOverride(instance)

isDirectTypeOf(data)

isTypeOf(data)

removeChild(child)