Main
Main Entity Component, storing name and other core data

ID: EntMain
Base Type: Entity Component

Values

NameTypeDescription
NameText Variable
Entity DisabledBool Variable
MB PrefabEntity Prefab Asset VariablePrefab this Entity is using - - ReadOnly
TagsText Variable ListList of tags added to the Entity
Added ComponentsEntity Component Type Variable ListList component types that have been added to the Entity - - ReadOnly
Removed ComponentsEntity Component Type Variable ListList component types removed from the Entity that were on it's Asset

Methods

NameDescription
All ComponentsEntity Component List
Owned ByClient
Controlled ByClient
Has TagBool
Remove Component Type
Add Component
Remove Entity()Removes the entity from the world
Turn On Playmode()
Die()Kills the entity (break apart / ragdoll)
Refresh Values()Runs RefreshValues event which components can use to refresh their values
Reset All Values()Resets the values all components to their prefab or default value
Reset Values On(MB Type Entity Component component)Resets the values on a given component type to their prefab or default value
Play Audio(Audio Clip clip)Play Audio on Entity. Sound will follow Entity will stop last audio played

Properties

NameTypeDescription
AssetEntity AssetAsset this Entity was created from
Asset TagsText ListTags on the Asset this Entity was created from
In Play ModeBool
Ent IDWhole Number
Is Local Only EntityBool
Is Disabled In HierarchyBoolEntity is Disabled or a parent is Disabled
Is DeadBool
Using PrefabsMB Prefab Instance List

Events

NameDescription
Awake()Ran after the Entity is created before starting play mode
Start()Ran when the Entity starts in play mode
Update()Ran between 5-10 times a second
Update Second()Ran at near every second
Enabled In Hierarchy()Ran when the Entity is enabled
Disabled In Hierarchy()Ran when the Entity is disabled
Refreshed Values()Ran by components to clear values / refresh state. Also ran after components are added/removed
Removed()Ran when Entity is removed
On Death()Ran when Entity dies

Attributes:
ModboxMain.MBTypeComponentNoIngameAddingAttribute