Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / mergeComponentValue

Function: mergeComponentValue() ​

ts
function mergeComponentValue(
   newFileCanonical, 
   instanceCanonical, 
   overridePaths): unknown;

Defined in: prefab/overrides.ts:542

Merge a component's NEW canonical file value with an instance's canonical value, preserving the instance side at every overridden path. An empty path ("") means the whole component is overridden → instance wins.

Parameters ​

ParameterType
newFileCanonicalunknown
instanceCanonicalunknown
overridePathsSet<string> | undefined

Returns ​

unknown