You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evdokimov Maksim edited this page Jul 20, 2021
·
3 revisions
Spawnable class doesn't have any special functions, but has many variables.
Game Objects
Prefab - see more in unity documentation.
Strings
Name contains name of your custom object. Description contains description of your custom object. CategoryName contains category of your custom object.
Floats
ThumbnailRenderScale = 5f Required to create an item icon. (Cannot be used in mods)
Vectors
ThubnailRenderOffset same thing as ThumbnailRenderScale
Sprites
Thumbnail is used for in-game icon
Actions
SpawnAction is main function analog of your gameobject.
Bools
Deactivated This variable is responsible for the ability to disable the modification.