ScarDoc

Start typing to search the SCAR reference.

Function
Prefab

Prefab_ForcePostInit

Finalize the initialization of any prefab instances that have been run through Prefab_Init(). This is automatically called one frame after a prefab is initialized, but you can force it early if necessary.

On this page
Prefab_ForcePostInit(arg1)

Description

If you are creating prefabs and using them in the same frame, call this function once, after all the Prefab_Inits, but before you start using them. This will force the post-initialization to occur early.

Parameters

  • arg1Voidrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/prefabs.scar