fix #if UNITY_EDITOR

This commit is contained in:
ousttrue 2018-04-10 19:35:32 +09:00
parent d7e758ba57
commit 610c1223e2
3 changed files with 8 additions and 5 deletions

View File

@ -10,12 +10,14 @@ using UnityEditor;
namespace VRM namespace VRM
{ {
#if UNITY_EDITOR
[Serializable] [Serializable]
public struct PropItem public struct PropItem
{ {
public ShaderUtil.ShaderPropertyType PropertyType; public ShaderUtil.ShaderPropertyType PropertyType;
public Vector4 DefaultValues; public Vector4 DefaultValues;
} }
#endif
[Serializable] [Serializable]
public class MaterialItem public class MaterialItem

View File

@ -212,6 +212,7 @@ namespace VRM
} }
} }
#if UNITY_EDITOR
Bounds m_bounds; Bounds m_bounds;
public void Bake(BlendShapeBinding[] values=null, MaterialValueBinding[] materialValues=null, float weight=1.0f) public void Bake(BlendShapeBinding[] values=null, MaterialValueBinding[] materialValues=null, float weight=1.0f)
{ {
@ -256,7 +257,7 @@ namespace VRM
} }
} }
#endif
/* /*
int PreviewLayer int PreviewLayer
{ {

View File

@ -4,11 +4,11 @@ namespace VRM
public static class VRMVersion public static class VRMVersion
{ {
public const int MAJOR = 0; public const int MAJOR = 0;
public const int MINOR = 24; public const int MINOR = 25;
public const string VERSION = "0.24"; public const string VERSION = "0.25";
public const string DecrementMenuName = "VRM/Version(0.24) Decrement"; public const string DecrementMenuName = "VRM/Version(0.25) Decrement";
public const string IncrementMenuName = "VRM/Version(0.24) Increment"; public const string IncrementMenuName = "VRM/Version(0.25) Increment";
} }
} }