The current World Modbox is in. Values are saved with the World

Create

NameTypeDescription
Create Entity: Entity From Asset(Entity Asset entAsset, Vector3 position, Vector3 rotation, Start Ent Mode startMode)EntityCreate a new Entity from a Entity asset
Create Entity: Clone Entity(Entity toClone, Start Ent Mode startMode)EntityClone Entity - keeping it's data and setting a new ID
Create Entity: Clone Entities(Entity List toClone, Start Ent Mode startMode)Entity ListClone a list of Entities
Create Entity: Replace Entity(Entity toReplace, Entity Asset withAsset, Replace Ent Mode replaceMode)EntityReplace a existing Entity with a new one, keeping it's ID (so any references to it in the world are kept) and optional it's Data
Create Entity: Create Stored Entity(Stored Entities data, Start Ent Mode startMode)EntityCreate a Entity from StoredEntity data
Create Entity: Create Under World Entity(Entity Asset entAsset, Entity underEntity, Start Ent Mode startMode)EntityCreate a Entity and set it as a child of a existing Entity
Create Entity: Create New Group(Entity List withEntities)EntityCreates a Group entity as a parent of the given Entities
Create Entity: Create Entity From Transform Part(Transform Part transformChild)Entity

Values

NameTypeDescription
Sky: Skybox MaterialMaterial Variable
Sky: Sun ColorColor Variable
Sky: Sun IntensityNumber Variablex
Sky: Sun AngleVector3 Variable
Sky: Ambient Equator ColorColor Variable
Sky: Ambient Ground ColorColor Variable
Sky: Ambient IntensityNumber Variablex
Sky: Ambient LightColor Variable
Sky: Ambient ModeEnum Variable
Sky: Ambient Sky ColorColor Variable
Sky: FogBool Variable
Sky: Fog ColorColor Variable
Sky: Fog DensityNumber Variablex
Sky: Fog End DistanceNumber Variablem
Sky: Fog ModeEnum Variable
Sky: Fog Start DistanceNumber Variablem
Radial Gravity Mod System Base: Radial GravityBool Variable
Audio: Music TrackAudioclip VariableWill loop Audio as Music (with volume set by user's 'Music' audio setting)
Audio: Music Track VolumeNumber VariableDefaults to 1 - x
Audio: Music Track PlayingBool VariableDefaults to True
Misc: Editor Ignore SelectionEntity Variable ListList of Entities to ignore with pointer/mouse Selection and VR Tools
Environment: EnvironmentEnvironment Variable
Environment: Post FXPost FX Variable
Environment: Post FX WeightNumber VariableDefaults to 1 - x
Environment: Post FX In EditmodeBool VariableDefaults to True
Environment: GravityNumber VariableDefaults to 1 - x
Environment: Time ScaleNumber VariableDefaults to 1 - x
Environment: Start HeightNumber Variablem
Environment: Start AngleNumber Variabledegrees
Graphics: View DistanceNumber VariableSet how far the camera can see - could help performance in large creations - m
Graphics: Hide Environment BoundsBool Variable
Graphics: Disable ShadowsBool VariableDisable all light shadows
Graphics: Set Shadow DistanceBool Variable
Graphics: Shadow DistanceNumber Variablem
Environment: Environment SizeVector3 VariableEnvironment size set by the current Environment - - ReadOnly
Game: Time PausedBool Variable
Game: Game OverBool Variable
Game: Remove Below BoundsNumber VariableWill remove any physics bodies once below these bounds, if Gravity is on - Defaults to -100
Environment: Ground TypeEnum Variable
Environment: Ground MaterialMaterial Variable
Environment: Wall TypeEnum Variable
Environment: Wall MaterialMaterial Variable
Environment: Wall HeightNumber VariableDefaults to 1 - x
Environment: Water PlaneBool Variable
Environment: Env Size YNumber VariableDefaults to 15 - m
Environment: Env Size XNumber VariableDefaults to 50 - m
Environment: Env Size ZNumber VariableDefaults to 50 - m
Environment: Environment ScaleNumber VariableDefaults to 1 - x
Sky: SkyboxSkybox Variable
Environment: Water MaterialMaterial Variable
Environment: Water LevelNumber VariableDefaults to -1 - m
Environment: Damage In WaterBool Variable
Environment: Damage AmountNumber VariableDefaults to 10 - hp
Environment: BuoyancyNumber Variablekn
Environment: Inside Post FXPost FX Variable
Game: Players Die Below HeightNumber VariablePlayers will die once below this height - Defaults to -20
Game: Use PathfindingBool Variable
Game: Set Pathfinding Grid To Environment SizeBool VariableDefaults to True
Game: Pathfinding Grid SizeVector2 Variable
Game: Pathfinding CenterVector2 Variable
Game: Always Generate GridBool VariableWill always generate pathfinding grid on switching to Play mode after changes are made
Game: Generate Grid NextBool VariableWill update pathfinding next Play mode
Game: Show Pathfinding GridBool Variable

Methods

NameDescription
UI: Show Message(Text textToShow)Print a message to all joined players
Audio: Play Audio At(Audio Clip clip, Vector3 pos)Play Audio at Position
Audio: Play Audio(Audio Clip clip)Play a Audio (2d)
Audio: Music Track Crossfade To(Audio Clip toTrack, Number speed)Fade in a new music track over time
Create Entity: Entity From Asset(Entity Asset entAsset, Vector3 position, Vector3 rotation, Start Ent Mode startMode)Create a new Entity from a Entity asset
Create Entity: Clone Entity(Entity toClone, Start Ent Mode startMode)Clone Entity - keeping it's data and setting a new ID
Create Entity: Clone Entities(Entity List toClone, Start Ent Mode startMode)Clone a list of Entities
Create Entity: Replace Entity(Entity toReplace, Entity Asset withAsset, Replace Ent Mode replaceMode)Replace a existing Entity with a new one, keeping it's ID (so any references to it in the world are kept) and optional it's Data
Create Entity: Create Stored Entity(Stored Entities data, Start Ent Mode startMode)Create a Entity from StoredEntity data
Create Entity: Create Under World Entity(Entity Asset entAsset, Entity underEntity, Start Ent Mode startMode)Create a Entity and set it as a child of a existing Entity
Create Entity: Create New Group(Entity List withEntities)Creates a Group entity as a parent of the given Entities
Create Entity: Create Entity From Transform Part(Transform Part transformChild)
Editor: Clear World()
Editor: Refresh All Connections()
Entities: Remove Entities(Entity List removeEntities)
Environment: Clear World(MB Widget Button)
Game: Turn On Entity Playmode(Entity worldEnt)
Game: Turn On Entities Playmode(Entity List ents)
Dictionary: Add To Dictionary(Dictionary Variable Interface dictionary, Text key, Object of any Type value)
Dictionary: Remove From Dictionary(Dictionary Variable Interface dictionary, Text key)
Dictionary: Clear Dictionary(Dictionary Variable Interface dictionary)
Ease: Ease To(MB Variable Value Ease To Interface onVar, Object of any Type to, Ease Type easeType, Number duration)Eases a variable to a new value over time
Ease: Ease Stop(MB Variable Value Ease To Interface var)
Effects: Play Effect(Effect effect, Vector3 position, Vector3 angle, Entity owner)Play a Effect at Position
Effects: Play Effect With Scale(Effect effect, Vector3 position, Vector3 angle, Number scale, Entity owner)
Effects: Play Effect Text(Text text, Vector3 position)
Game: Fire Projectile(Projectile projectile, Vector3 position, Vector3 angle, Entity owner)
Game: Rescan
Game: Regenerate Grid Around Entity(Entity entity)
Game: Generate New Graph()

Events

NameDescription
MBScript: Update Frame()Ran every Frame (in Update())
MBScript: Update Frame Fixed()Ran every Frame (in FixedUpdate())
Game: Playmode Started()Runs when Playmode starts in the World
Players: User Joined Server(User user)
Players: User Left Server(User user)
Players: User Started Playmode(User user)When a User starts in Play mode
Players: User Spawn Selected(User user)User selected to Spawn / Respawn. Will check UserCanSpawnSelf event before spawning them
Players: User State Changed(User user)Ran whenever a player in the world's state changed
Players: User Avatar Died(User user)
Players: Player Avatar Set(Player Avatar player)Called when a User is set to a Avatar
Players: User On Team Set(User user)Called when a user's 'SetAvatarToTeam' is set
Players: User Killed User(User deadUser, User attacker)
Players: User Killed Self(User user)

Properties

NameTypeDescription
Audio: Music Play TimeNumber
Audio: Music Is PlayingBool
Game: TimePlay TimeTime since start of the world's play mode
Entities: Entities From Asset(Entity Asset)Entity List
Entities: Entity By Ent ID(Whole Number)Entity
Entities: Components Of Type(MB Type Entity Component)Entity Component List
Entities: All EntitiesEntity List
Entities: Entity By Tag(Tag In Entity)Entity
Entities: Entities With Tag(Tag In Entity)Entity List
Entities: Entities Within Distance(Vector3, Number)Entity List
Entities: Components Within Distance(MB Type Entity Component, Vector3, Number)Entity Component List
Entities: Entities On Team(Team)Team List
Entities: All ToysToy List
Physics: Raycast(Vector3, Vector3, Number, Bool)Raycast Hit
Physics: Raycast All(Vector3, Vector3, Number)Raycast Hit List
Physics: Box Cast(Vector3, Vector3, Vector3, Vector3, Number)Raycast Hit
Physics: Boxcast All(Vector3, Vector3, Vector3, Vector3, Number)Raycast Hit List
Physics: Sphere Cast(Vector3, Number, Vector3, Number, Bool)Raycast Hit
Physics: Sphere Cast All(Vector3, Number, Vector3, Number)Raycast Hit List
Physics: Overlap Box(Vector3, Vector3, Vector3)Entity List
Physics: Overlap Box Colliders(Vector3, Vector3, Vector3)Collider Part List
Physics: Overlap Sphere(Vector3, Number)Entity List
Physics: Overlap Sphere Colliders(Vector3, Number)Collider Part List
Game: In Play ModeBool
Players: Main UserUserThe host user
Players: Main Local UserUser LocalThe local main user. This will be different on other clients
Players: Main Local VR UserUser VR LocalThe local main VR user. This will be different on other clients
Players: Main Player AvatarPlayer AvatarThe host user's player avatar
Players: All UsersUser List
Players: All Player AvatarsPlayer Avatar List
Game: Grid InfoText

Return Value Events

NameTypeDescription
Players: User Can Spawn Self(User user)BoolReturn if a specific User can spawn themselves