Prefab Instance Component: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Initial content)
 
mNo edit summary
Line 1: Line 1:
The prefab instance component is a [[:Category:Gameplay Components|gameplay component]] that creates an instance of a given [[Prefab]].
The prefab instance component is a [[:Category:Gameplay Components|gameplay component]] that creates an instance of a given [[Prefab Asset]].


This component cannot be added through the inspector and instead must be created from the [[Hierarchy Window]] by right clicking or from the ''GameObject'' toolbar menu. It is created by choosing ''Prefab Instance'' from the menu. This will create a gameobject with a prefab instance component.
This component cannot be added through the inspector and instead must be created from the [[Hierarchy Window]] by right clicking or from the ''GameObject'' toolbar menu. It is created by choosing ''Prefab Instance'' from the menu. This will create a gameobject with a prefab instance component.

Revision as of 03:22, 31 October 2022

The prefab instance component is a gameplay component that creates an instance of a given Prefab Asset.

This component cannot be added through the inspector and instead must be created from the Hierarchy Window by right clicking or from the GameObject toolbar menu. It is created by choosing Prefab Instance from the menu. This will create a gameobject with a prefab instance component.

Gameobjects with this component cannot have any child gameobjects, and will appear a unique color in the hierarchy.