functions Static Methods 22

AddInstanceAddedGameObjectToPrefab (go)
PrefabInstanceData.AddGameObjectToPrefab(Sandbox.GameObject)
ApplyComponentInstanceChangesToPrefab (comp)
PrefabInstanceData.ApplyComponentChangesToPrefab(Sandbox.Component)
ApplyGameObjectInstanceChangesToPrefab (go)
PrefabInstanceData.ApplyGameObjectChangesToPrefab(Sandbox.GameObject)
ApplyPropertyChange (prop)
PrefabInstanceData.ApplyPropertyChangeToPrefab(System.Object,System.String)
ConvertGameObjectToPrefab (go, saveLocation, skipDiskWrite)
Convert a GameObject to a prefab. This will write the newly created prefab to disk and set the prefab source on the GameObject.
CreateAsset (clone)
obsoletePrefabFile
Create a prefab out of any GameObject
GetOuterMostPrefabName (obj)
string
Returns the name of the prefab file that this GameObject or Component is an instance of.
GetTargets (root, variable)
obsoleteSerializedProperty
Get a SerializedProperty representing variable targets. Will return null if there are no targets
GetTemplates ()
IEnumerable`1
Fetches all prefab templates to show in Create GameObject menus
GetVariables (obj)
obsoleteVariableCollection
IsComponentAddedToInstance (comp)
bool
PrefabInstanceData.IsAddedComponent(Sandbox.Component)
IsComponentInstanceModified (comp)
bool
PrefabInstanceData.IsComponentModified(Sandbox.Component)
IsComponentPartOfInstance (comp)
bool
Returns true if the owning GameObject is part of a prefab instance.
IsGameObjectAddedToInstance (go)
bool
PrefabInstanceData.IsAddedGameObject(Sandbox.GameObject)
IsGameObjectInstanceModified (go)
bool
PrefabInstanceData.IsGameObjectModified(Sandbox.GameObject,System.Boolean)
IsInstanceModified (prefabInstance)
bool
PrefabInstanceData.IsModified
IsOuterMostPrefabRoot (obj)
bool
Returns the name of the prefab file that this GameObject or Component is an instance of.
IsPropertyOverridden (prop)
bool
PrefabInstanceData.IsPropertyOverridden(System.Object,System.String,System.Boolean)
RevertComponentInstanceChanges (comp)
PrefabInstanceData.RevertComponentChanges(Sandbox.Component)
RevertGameObjectInstanceChanges (go)
PrefabInstanceData.RevertGameObjectChanges(Sandbox.GameObject)
RevertPropertyChange (prop)
PrefabInstanceData.RevertPropertyChange(System.Object,System.String)
WriteInstanceToPrefab (go, skipDiskWrite)
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.