Skip to content

format

typescript
Debug.Warning(...args)

class: Debug

description

Outputs a warning message to the console.

Unlike Debug.Log, this method marks the message as a warning, typically used to indicate potential issues or potential errors to developers, but does not cause the program to crash.

parameter

param_nametypedescription
...argsany[]The warning message.

return

typedescription
void

code example

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