- Plugin and behavior templates include saveToJSON() and loadFromJSON() template methods. You must implement these for your plugin or behavior to support full-state save/load or the Persist behavior. Usually this is relatively simple (see the comments - you just need to return a JSON object in the save method, then read from the same object in the load method).
- Plugin and behavior templates now include an onDestroy() method by default. You should drop references or recycle objects for GC in this method, since the runtime will keep the actual instance around for recycling.
- Some .c2addon samples are bundled, as well as the source folders to zip to create .c2addon files. This should help you easily create .c2addon packages.