We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbaf31 commit 76266f8Copy full SHA for 76266f8
Runtime/SaveMesh.cs
@@ -1,5 +1,6 @@
1
#if UNITY_EDITOR
2
using UnityEditor;
3
+#endif
4
using UnityEngine;
5
6
namespace Zigurous.Graphics
@@ -54,6 +55,7 @@ private void Start()
54
55
/// </summary>
56
public void Save()
57
{
58
+ #if UNITY_EDITOR
59
MeshFilter filter = GetComponent<MeshFilter>();
60
61
if (filter.mesh != null)
@@ -64,9 +66,9 @@ public void Save()
64
66
AssetDatabase.CreateAsset(filter.mesh, "Assets/" + filter.mesh.name + ".mesh");
65
67
}
68
69
+ #endif
70
71
72
73
74
-#endif
0 commit comments