Static Methods

ApplyComponentInstanceChangesToPrefab PrefabInstanceData.ApplyComponentChangesToPrefab(Sandbox.Component)
ApplyGameObjectInstanceChangesToPrefab PrefabInstanceData.ApplyGameObjectChangesToPrefab(Sandbox.GameObject,System.Boolean)
ApplyPropertyChange PrefabInstanceData.ApplyPropertyChangeToPrefab(System.Object,System.String)
ConvertGameObjectToPrefab Convert a GameObject to a prefab. This will write the newly created prefab to disk and set the prefab source on the GameObject.
CreateAssetobsolete Create a prefab out of any GameObject
GetOuterMostPrefabName Returns the name of the prefab file that this GameObject or Component is an instance of.
GetTargetsobsolete Get a SerializedProperty representing variable targets. Will return null if there are no targets
GetTemplates Fetches all prefab templates to show in Create GameObject menus
GetVariablesobsolete
IsComponentAddedToInstance PrefabInstanceData.IsAddedComponent(Sandbox.Component)
IsComponentInstanceModified PrefabInstanceData.IsComponentModified(Sandbox.Component)
IsComponentPartOfInstance Returns true if the owning GameObject is part of a prefab instance.
IsGameObjectAddedToInstance PrefabInstanceData.IsAddedGameObject(Sandbox.GameObject)
IsGameObjectInstanceModified PrefabInstanceData.IsGameObjectModified(Sandbox.GameObject,System.Boolean)
IsInstanceModified PrefabInstanceData.IsModified
IsPropertyOverridden PrefabInstanceData.IsPropertyOverridden(System.Object,System.String,System.Boolean)
RevertComponentInstanceChanges PrefabInstanceData.RevertComponentChanges(Sandbox.Component)
RevertGameObjectInstanceChanges PrefabInstanceData.RevertGameObjectChanges(Sandbox.GameObject)
RevertInstanceToPrefab Revert a prefab instance to the state of the prefab.
RevertPropertyChange PrefabInstanceData.RevertPropertyChange(System.Object,System.String)
WriteInstanceToPrefab Write a prefab instance back to the prefab file and save it to disk.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.