#if UNITY_EDITOR using UnityEngine; namespace RoadArchitect { public class EditorUtilities { /// Opens the loacally stored manual public static void OpenOfflineManual() { Application.OpenURL(System.Environment.CurrentDirectory.Replace(@"\", "/") + "/" + RoadEditorUtility.GetBasePath() + "/RoadArchitectManual.htm"); } /// Loads the _texture from _path if necessary public static void LoadTexture(ref T _texture, string _path) where T : Texture { _texture = EngineIntegration.LoadAssetFromPath(_path); } public static void DrawLine(float _spacing = 4f, float _size = 1f) { //Horizontal bar GUILayout.Space(_spacing); GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(_size)); GUILayout.Space(_spacing); } } } #endif