A utility type that represents any value which can be represented in JSON, namely:
It may be useful to use this type when sending events, when sending messages over the network, or when working with SaveData.
Draw a debug line from start to finish with depth testing
The color of the line. The default value is White
How long the line will be visible for in seconds. 0
means it is only visible for the current frame. The default value is 0
Draw a debug line from start to finish without depth testing
The color of the line. The default value is White
How long the line will be visible for in seconds. 0
means it is only visible for the current frame. The default value is 0
An object that could have any property, and that property could have any value.
This can be used instead of
any
in places where you want to distinguish the object fromnull
, sinceany | null
doesn't require null due to how theany
type works in TypeScript.