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.
👍 Tips You can check various platform environments as well as the Unity Editor.
- For more information about RuntimePlatform, please refer to the following link.
Updated 10 Oct 2024
Did this page help you?