Unity3d Error---Build failed : Asset is marked as don't save
2013-10-28 22:39
453 查看
In a script I had:
public class RoadManager : MonoBehaviour{
public GUIStyle centerStyle;
public GUIStyle RCP_LabelStyle;
public GUIStyle RCP_PlusStyle;
}
[/code]
and in and Editor Script I did something like this
roadmanger.centerstyle = EditorStyles.bold;
//Modified some attributes, etc etc
[/code]
this saved editor information into a the object, and internal graphics, and referances to other editor info. I still want to keep these referances for my Custom inspector, so I did this to make it so the info
doesn't come into a build
public class RoadManager : MonoBehaviour{
#if UNITY_EDITOR
public GUIStyle centerStyle;
public GUIStyle RCP_LabelStyle;
public GUIStyle RCP_PlusStyle;
#endif
}
[/code]
Hopes this saves someone the headache i went through :)
public class RoadManager : MonoBehaviour{
public GUIStyle centerStyle;
public GUIStyle RCP_LabelStyle;
public GUIStyle RCP_PlusStyle;
}
[/code]
and in and Editor Script I did something like this
roadmanger.centerstyle = EditorStyles.bold;
//Modified some attributes, etc etc
[/code]
this saved editor information into a the object, and internal graphics, and referances to other editor info. I still want to keep these referances for my Custom inspector, so I did this to make it so the info
doesn't come into a build
public class RoadManager : MonoBehaviour{
#if UNITY_EDITOR
public GUIStyle centerStyle;
public GUIStyle RCP_LabelStyle;
public GUIStyle RCP_PlusStyle;
#endif
}
[/code]
Hopes this saves someone the headache i went through :)
相关文章推荐
- [cnblogs镜像]Unity "Build failed : Asset is marked as don't save " 解决方案
- 解决 Error: Table './db_name/table_name' is marked as crashed and last (automatic?) repair
- Build Assetbundle出错:An asset is marked as dont save, but is included in the build
- 解决 Error: Table './db_name/table_name' is marked as crashed and last (automatic?) repair
- Unity 解决 An asset is marked with HideFlags.DontSave but is included in the build 问题。
- 打包的时候报错 An asset is marked with HideFlags.DontSave but is included in the build的解决办法
- [MySQL]快速解决"is marked as crashed and should be repaired"故障
- 【iOS】Swift3:执行save()的时候出现:Call can throw, but it is not marked with 'try' and the error is not handl
- Table 'this_' is marked as crashed and should be repaired (MYSQL数据错误解决)
- mysql错误:ERROR 145 (HY000): Table './zentao/zt_action' is marked as crashed and should be repaired
- Table 'table_name' is marked as crashed and last (automatic?) repair failed解决办法
- mysql:ERROR 1194 (HY000): Table 'user' is marked as crashed and should be repaired
- Mysql错误:Table 'xxx'is marked as crashed and should be repaired
- 关于MYSQL:Got error 134 from storage engine/is marked as crashed and should be repaired
- mysql 出现表损坏解决方法:table 'xxx' is marked as crashed and should be repaired
- [MySQL]快速解决"is marked as crashed and should be repaired"故障
- MySQL 解决"is marked as crashed and should be repaired"故障
- Table '.\mysql\proc' is marked as crashed and should be repaired 报错
- mysql:Table 'xxxxx' is marked as crashed and should be repaired
- 快速解决"is marked as crashed and should be repaired"故障以及is marked as crashed and last (automatic?)