Skip to content

Debug ​

Inherits Instance.

A service: the global Debug is the game's one Debug.

Properties ​

NameTypeNotes
EnabledbooleanNot saved in places.

Methods ​

  • Clear(): ()
  • DrawBox(transform: Transform, size: Vector3, color: Color?, duration: number?): ()
  • DrawLine(from: Vector3, to: Vector3, color: Color?, duration: number?): ()
  • DrawPath(points: {Vector3}, color: Color?, duration: number?): ()
  • DrawRay(origin: Vector3, direction: Vector3, color: Color?, duration: number?): ()
  • DrawSphere(center: Vector3, radius: number, color: Color?, duration: number?): ()
  • GetLineCount(): number

Inherited ​

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0