• Tutorials
    • Editor
      • Editor Interface
      • Constructive Solid Geometry
      • Scene Panel
      • Lights
      • Asset Browser
      • Textures
      • Materials
      • Models and Animation
      • Terrain
      • Particle Emitters
      • Prefabs
      • Workshop
      • Rendering Screenshots
      • Project Manager
      • Publishing Games
    • Lua Scripting
      • Introduction to Lua
      • Code Comments
      • Variables
      • "if" Statements
      • Operators
      • Loops
      • Tables
      • Functions
      • Script Properties
      • Debugger
    • C++ Programming
      • Introduction to C++
      • Code Comments
      • Variables
      • "if" Statements
      • Operators
      • Loops
      • Arrays
      • Containers
      • Functions
      • Classes
      • Actors
    • Games
      • Marble Game
        • Player Setup
        • Player Movement
        • Powerups
        • Keeping Score
        • Changing Levels
        • Respawning
        • Finishing Touches
      • First-Person Shooter
        • Character Controllers
        • Doors
        • Moving Platforms
        • Switches and the Flowgraph
        • Picking Up Objects
        • AI, Pathfinding, and Events
  • API Reference
    • Object
      • Analytics
        • Disable
        • Enable
        • SendGenericEvent
        • SendProgressEvent
        • SetKeys
      • Asset
        • Font
          • GetHeight
          • GetTextWidth
          • Load
        • Material
          • Create
          • GetBackFaceCullMode
          • GetBlendMode
          • GetColor
          • GetDepthMaskMode
          • GetDepthTestMode
          • GetPickMode
          • GetRoughness
          • GetShader
          • GetShadowMode
          • GetSortMode
          • GetTexture
          • Load
          • SetBackFaceCullMode
          • SetBlendMode
          • SetColor
          • SetDepthMaskMode
          • SetDepthTestMode
          • SetPickMode
          • SetRoughness
          • SetShader
          • SetShadowMode
          • SetSortMode
          • SetTexture
        • Shader
          • Compile
          • Create
          • GetFloat
          • GetInt
          • GetLog
          • GetMat3
          • GetMat4
          • GetVec2
          • GetVec3
          • GetVec4
          • Link
          • SetFloat
          • SetInt
          • SetMat3
          • SetMat4
          • SetSource
          • SetVec2
          • SetVec3
          • SetVec4
        • Shape
          • Box
          • Cone
          • ConvexHull
          • Cylinder
          • Load
          • PolyMesh
          • Sphere
        • Sound
          • GetLength
          • Load
          • Play
        • Texture
          • Bind
          • CountMipmaps
          • Create
          • GetClampMode
          • GetFilter
          • GetFormat
          • GetHeight
          • GetMipmapSize
          • GetPixels
          • GetWidth
          • Load
          • SetClampMode
          • SetFilter
          • SetPixels
        • Copy
        • GetPath
      • Blend
      • Collision
      • Color
      • Client
        • Connect
        • Create
        • Disconnect
        • Send
        • Update
      • Context
        • Create
        • DrawImage
        • DrawLine
        • DrawRect
        • DrawText
        • GetColor
        • GetCurrent
        • GetFont
        • GetHeight
        • GetShader
        • GetWidth
        • GetWindow
        • Plot
        • SetBlendMode
        • SetColor
        • SetCurrent
        • SetFont
        • SetRotation
        • SetScale
        • SetShader
        • SetTranslation
        • Sync
      • Debug
        • Assert
        • Error
      • Entity
        • Bone
        • Camera
          • Light
            • DirectionalLight
              • Create
            • PointLight
              • Create
            • SpotLight
              • Create
              • GetConeAngles
              • SetConeAngles
            • GetVolumetricStrength
            • SetRange
            • SetVolumetricStrength
          • Probe
          • AddPostEffect
          • ClearPostEffects
          • Create
          • GetClearColor
          • GetFogAngle
          • GetFogColor
          • GetFogMode
          • GetFogRange
          • GetFOV
          • GetProjectionMode
          • GetRange
          • GetRenderTarget
          • GetZoom
          • Pick
          • Project
          • SetClearColor
          • SetFogAngle
          • SetFogColor
          • SetFogMode
          • SetFogRange
          • SetFOV
          • SetMultisampleMode
          • SetProjectionMode
          • SetRange
          • SetRenderTarget
          • SetSkybox
          • SetZoom
          • UnProject
        • Decal
          • Create
          • GetRenderMode
          • SetRenderMode
        • Emitter
          • AddAlphaControlPoint
          • AddScaleControlPoint
          • ClearAlphaControlPoints
          • ClearScaleControlPoints
          • CountAlphaControlPoints
          • CountScaleControlPoints
          • Create
          • GetAcceleration
          • GetAlphaAtTime
          • GetAnimationColumns
          • GetAnimationCycles
          • GetAnimationRows
          • GetDuration
          • GetEmissionShape
          • GetEmissionVolume
          • GetFacingDirection
          • GetInterval
          • GetLoopMode
          • GetMaxScale
          • GetParticleColor
          • GetParticleCount
          • GetPaused
          • GetReleaseQuantity
          • GetRotationByVelocityMode
          • GetRotationSpeed
          • GetScaleAtTime
          • GetVelocity
          • GetViewMode
          • Pause
          • Play
          • Reset
          • SetAcceleration
          • SetAnimationColumns
          • SetAnimationCycles
          • SetAnimationRows
          • SetDuration
          • SetEmissionShape
          • SetEmissionVolume
          • SetFacingDirection
          • SetInterval
          • SetLoopMode
          • SetMaxScale
          • SetParticleColor
          • SetParticleCount
          • SetReleaseQuantity
          • SetRotationByVelocityMode
          • SetRotationSpeed
          • SetVelocity
          • SetViewMode
        • Listener
          • Create
        • Model
          • Sprite
            • LensFlare
              • Create
              • GetRadius
              • GetRange
              • GetRotationSpeed
              • SetRadius
              • SetRange
              • SetRotationSpeed
            • GetAngle
            • GetSize
            • GetViewMode
            • SetAngle
            • SetSize
            • SetViewMode
          • AddSurface
          • Box
          • Cone
          • CountSurfaces
          • Create
          • Cylinder
          • FindSurface
          • GetSurface
          • Load
          • Sphere
        • Pivot
          • Create
        • AddForce
        • AddPointForce
        • AddTorque
        • AlignToVector
        • Copy
        • CountAnimations
        • CountChildren
        • EmitSound
        • FindChild
        • Follow
        • GetAABB
        • GetAirborne
        • GetAnimationLength
        • GetChild
        • GetCollisionType
        • GetColor
        • GetCrouched
        • GetCulled
        • GetDistance
        • GetGravityMode
        • GetIntensity
        • GetKeyValue
        • GetMass
        • GetMaterial
        • GetMatrix
        • GetNavigationMode
        • GetOcclusionCullingMode
        • GetOmega
        • GetParent
        • GetPhysicsMode
        • GetPickMode
        • GetPickRadius
        • GetPointVelocity
        • GetPosition
        • GetRotation
        • GetQuaternion
        • GetScale
        • GetShape
        • GetSweptCollisionMode
        • GetVelocity
        • GetViewRange
        • GoToPoint
        • Hidden
        • Hide
        • Instance
        • LoadAnimation
        • LockMatrix
        • Move
        • Pick
        • PlayAnimation
        • Point
        • SetAnimationFrame
        • SetCollisionType
        • SetColor
        • SetFriction
        • SetGravityMode
        • SetInput
        • SetIntensity
        • SetKeyValue
        • SetMass
        • SetMaterial
        • SetMatrix
        • SetOmega
        • SetParent
        • SetPhysicsMode
        • SetNavigationMode
        • SetOcclusionCullingMode
        • SetPickMode
        • SetPickRadius
        • SetPosition
        • SetQuaternion
        • SetRotation
        • SetScale
        • SetScript
        • SetShadowMode
        • SetShape
        • SetSweptCollisionMode
        • SetVelocity
        • SetViewRange
        • Show
        • Stop
        • StopAnimation
        • Translate
        • Turn
        • UnlockMatrix
        • UpdateAABB
      • Event
      • EventQueue
        • Emit
        • Peek
        • Wait
      • FileSystem
        • CopyFile
        • CreateDir
        • CreateFile
        • DeleteDir
        • DeleteFile
        • ExtractDir
        • GetAppDataPath
        • GetDir
        • GetFileSize
        • GetFileTime
        • GetFileType
        • OpenFile
        • ReadFile
        • RealPath
        • RenameDir
        • RenameFile
        • SetDir
        • StripAll
        • StripDir
        • StripExt
        • WriteFile
      • GUI
        • Create
        • GetBase
      • Joint
        • Ball
        • DisableLimits
        • DisableMotor
        • EnableLimits
        • EnableMotor
        • GetAngle
        • GetFriction
        • GetSpring
        • GetTargetAngle
        • Hinge
        • Kinematic
        • LimitsEnabled
        • MotorEnabled
        • SetFriction
        • SetLimits
        • SetMotorSpeed
        • SetSpring
        • SetTargetAngle
        • SetTargetPosition
        • SetTargetRotation
        • SetTargetMatrix
        • Slider
      • Key
      • Leaderboard
        • CountEntries
        • Find
        • GetEntryScore
        • GetEntryUserID
        • SetScore
      • Lobby
        • Count
        • CountMembers
        • Create
        • Get
        • GetMember
        • GetOwner
        • Join
        • Leave
      • Map
        • Load
      • Math
        • AABB
          • DistanceToPoint
          • IntersectsAABB
          • IntersectsPlane
          • IntersectsPoint
          • IntersectsRay
          • Update
        • Mat3
          • Inverse
          • Transpose
        • Mat4
          • Inverse
          • Transpose
        • Plane
          • DistanceToPoint
          • GetNormal
          • IntersectsLine
          • Inverse
        • Quat
          • Slerp
        • Transform
          • Normal
          • Plane
          • Point
          • Rotation
          • Vector
        • Vec2
        • Vec3
          • Cross
          • DistanceToPoint
          • Dot
          • Inverse
          • Length
          • Normalize
          • xy
          • xz
          • zy
        • Vec4
          • xy
          • xyz
        • ACos
        • ASin
        • ATan
        • ATan2
        • Clamp
        • Cos
        • Curve
        • CurveAngle
        • Degrees
        • DeltaAngle
        • Hex
        • Inc
        • IncAngle
        • Lerp
        • Log2
        • Max
        • Min
        • Mod
        • Pow2
        • Radians
        • Random
        • Round
        • Sgn
        • Sin
        • Tan
      • Message
      • Mutex
        • Create
        • Lock
        • Unlock
      • P2P
        • Broadcast
        • Connected
        • Receive
        • Send
      • Peer
      • PickInfo
      • Prefab
        • Load
      • Server
        • Broadcast
        • Create
        • Disconnect
        • Send
        • Update
      • Source
        • Create
        • GetPitch
        • GetState
        • GetTime
        • Pause
        • Play
        • Resume
        • SetLoopMode
        • SetPitch
        • SetPosition
        • SetRange
        • SetSound
        • SetTime
        • SetVolume
        • Stop
      • Surface
        • Add
        • AddTriangle
        • AddVertex
        • CountTriangles
        • CountVertices
        • FlipNormals
        • GetAABB
        • GetMaterial
        • GetTriangleNormal
        • GetTriangleVertex
        • GetVertexColor
        • GetVertexNormal
        • GetVertexPosition
        • GetVertexTexCoords
        • Pick
        • SetMaterial
        • SetVertexColor
        • SetVertexNormal
        • SetVertexPosition
        • SetVertexTexCoords
        • Update
        • UpdateNormals
        • UpdateTangentsAndBinormals
      • Steamworks
        • Initialize
      • Stream
        • EOF
        • GetPos
        • GetSize
        • Read
        • ReadFloat
        • ReadInt
        • ReadLine
        • ReadString
        • ReadUChar
        • ReadUShort
        • Seek
        • Write
        • WriteFloat
        • WriteInt
        • WriteLine
        • WriteString
        • WriteUChar
        • WriteUShort
      • System
        • AddHook
        • CountGraphicsModes
        • GetGraphicsMode
        • GetMemoryUsage
        • GetProperty
        • Print
        • RemoveHook
      • Thread
        • Create
        • GetResult
        • GetState
        • Wait
      • Time
        • Delay
        • GetCurrent
        • GetSpeed
        • Millisecs
        • Pause
        • Resume
        • Step
        • Update
        • UPS
      • Voice
        • Broadcast
        • SetFilter
      • VR
        • CenterTracking
        • Enable
        • GetControllerAxis
        • GetControllerButtonDown
        • GetControllerButtonTouched
        • GetControllerButtonHit
        • GetControllerModel
        • GetOffset
        • SetOffset
        • SetTrackingSpace
        • TriggerHapticPulse
      • Window
        • Closed
        • Create
        • FlushKeys
        • FlushMouse
        • GetCurrent
        • GetHeight
        • GetMousePosition
        • GetWidth
        • Hide
        • HideMouse
        • KeyDown
        • KeyHit
        • Maximize
        • Maximized
        • MouseDown
        • MouseHit
        • Restore
        • SetMousePosition
        • SetLayout
        • Show
        • ShowMouse
      • World
        • BuildNavMesh
        • Create
        • Clear
        • ForEachEntityInAABBDo
        • GetCurrent
        • GetGravity
        • GetLightQuality
        • GetWaterColor
        • GetWaterHeight
        • GetWaterMode
        • GetWaterQuality
        • Pick
        • Render
        • SetAmbientLight
        • SetCurrent
        • SetGravity
        • SetLightQuality
        • SetPhysicsDetail
        • SetWaterColor
        • SetWaterHeight
        • SetWaterMode
        • SetWaterQuality
        • Update
      • Widget
        • AddItem
        • Button
        • ChoiceBox
        • CountItems
        • Create
        • Disable
        • Enable
        • GetClientSize
        • GetDisabled
        • GetHidden
        • GetItemText
        • GetPosition
        • GetSelectedItem
        • GetSize
        • GetState
        • GetText
        • Hide
        • Label
        • ListBox
        • Panel
        • ProgressBar
        • SelectItem
        • SetAlignment
        • SetBool
        • SetFloat
        • SetLayout
        • SetString
        • SetState
        • SetText
        • Show
        • Slider
        • Tabber
        • TextArea
        • TextField
      • AddRef
      • Debug
      • GetAddress
      • GetClass
      • GetClassName
      • GetRefCount
      • GetUserData
      • Release
      • SetUserData
      • ToString