Skip to content

format

typescript
Debug.Error(...args)

class: Debug

description

Outputs an error message to the console.

Unlike Debug.Log and Debug.Warning, this method marks the message as an error, typically used to indicate serious issues or errors in the program that may prevent it from functioning properly.

parameter

param_nametypedescription
...argsany[]The error message.

return

typedescription
void

code example

typescript
Debug.Error("print debug infomation");