Download com.unity.ml-agents/Editor/EditorUtilities.cs from ashish2244/ppo-SnowballTarget: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Editor/EditorUtilities.cs
- Command line
-
hf download hf://ashish2244/ppo-SnowballTarget/com.unity.ml-agents/Editor/EditorUtilities.cs
-
curl -L -o EditorUtilities.cs https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Editor/EditorUtilities.cs
560 Bytes
| using UnityEngine; | |
| namespace Unity.MLAgents.Editor | |
| { | |
| /// <summary> | |
| /// A static helper class for the Editor components of the ML-Agents SDK. | |
| /// </summary> | |
| public static class EditorUtilities | |
| { | |
| /// <summary> | |
| /// Whether or not properties that affect the model can be updated at the current time. | |
| /// </summary> | |
| /// <returns>True if the model can be updated, False if not.</returns> | |
| public static bool CanUpdateModelProperties() | |
| { | |
| return !Application.isPlaying; | |
| } | |
| } | |
| } | |