I can't say for certain which these are, but basically, whenever I try to use recompile during playmode I get a spew of warnings like: However, any chance of implementing recompile during playmode is blocked by Unity provided components. Basically, changing scripts while playing the game can alleviate many different issues such as long enter playmode times or generally avoid having to play portions of the game or investing in additional testing/debugging logic. All of this is a lot of extra work, but it's possible and can be immensely beneficial to testing and iterating. Either by using only serializable member variables or by restoring objects during OnEnable, for example. As a user, I would have to ensure that all of my scripts serialize their complete state. Both are valid options and work well 99.9% of the time.īut the third option, compiling scripts and continuing playmode seems like it won't ever work. We can either have playmode stop when scripts are recompiled or delay recompiling until playmode is exited. The two other options make sense depending on personal taste. This sounds like a nice feature, but it feels abandoned. There's a preferences item called "Script Changes While Playing" with the option to "Recompile and Continue Playing".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |