HELP
Development FAQ

How to use #if UNITY_EDITOR when checking RuntimePlatform

1min

While developing, there are times when you need to check whether the current script is running in the Unity Editor or mobile.

You can check whether it is running in the Unity Editor with the following example code.

CheckPlatform




👍 Tips You can check various platform environments as well as the Unity Editor.

TypeScript

  • For more information about RuntimePlatform, please refer to the following link.