s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
Prefabs
chevron_left
Editor Classes
class
Prefabs
search
Static Methods
functions
AddInstanceAddedGameObjectToPrefab
functions
ApplyComponentInstanceChangesToPrefab
functions
ApplyGameObjectInstanceChangesToPrefab
functions
ApplyPropertyChange
functions
ConvertGameObjectToPrefab
remove_circle
CreateAsset
functions
GetOuterMostPrefabName
remove_circle
GetTargets
functions
GetTemplates
remove_circle
GetVariables
functions
IsComponentAddedToInstance
functions
IsComponentInstanceModified
functions
IsComponentPartOfInstance
functions
IsGameObjectAddedToInstance
functions
IsGameObjectInstanceModified
functions
IsInstanceModified
functions
IsOuterMostPrefabRoot
functions
IsPropertyOverridden
functions
RevertComponentInstanceChanges
functions
RevertGameObjectInstanceChanges
functions
RevertPropertyChange
functions
WriteInstanceToPrefab
Prefabs
class
Editor.EditorUtility
.
static
sealed
abstract
Sandbox.Tools
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
)
obsolete
PrefabFile
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
)
obsolete
SerializedProperty
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
)
obsolete
VariableCollection
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.