Skip to content

API Function setField

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Function: setField()

function setField(
   component, 
   field, 
   value, 
   target?, 
   index?
): OverrideEntry;

Defined in: src/engine/scene/sceneBuilder.ts:37

A field override for a prefab instance; target is the node-id path inside the instance.

Parameters

component

string

field

string

value

unknown

target?

string[]

index?

number

Returns

OverrideEntry

Clone this wiki locally