Plugin API 0.6.7 (2023-06-30):
- [New] AssetBundle.getAllAssetNames()
- [New] ModelAsset can now be loaded from file (fbx, obj etc)
- [New] Plant object which represents vegetation (see World.getPlant())
- [New] Sign object which represents signs (see World.getSign())
- [New] CustomImage object which represents custom images (posters)
- [New] PlayerSetSignTextEvent
- [New] PlayerMouseButtonEvent
- [New] PlayerGameObjectHitEvent
- [New] PlayerGameObjectInteractionEvent
- [New] Player.hideRadialMenu()
- [New] Player.addDamage()
- [New] Player.isKeyPressed()
- [New] Server.getCustomImage()
- [New] Server.removeCustomImage()
- [New] Server.getAllCustomImages()
- [New] Server.getPlayerUID()
- [New] World.getSign()
- [New] World.createPlant()
- [New] World.getPlant()
- [New] World.removePlant()
- [New] Player.createScreenshot() now supports an arbitrary world position
- [New] Quaternion.getPitch(), getYaw() and getRoll()
- [New] NpcTransformEvent
- [New] Access to the SQLite world database (see getWorldDatabase())
- [New] UILabel.setTextAlign() and setTextWrap() (helper methods for style properties)
- [New] Internals.setRawObjects(), Internals.setRawConstructions(), Internals.setRawPlants()
- [Change] Note: Internal object IDs changed with this update (!)
- [Change] GameObject getLocalPosition() now returns the actual position (e.g. after calling moveToLocalPosition())
- [Change] InputEvent is now cancellable
- [Change] PlayerConstructionEvents are now cancellable
- [Change] Tabbing out of the game now releases all pressed keys
- [Change] Quaternion.toAngles() and fromAngles() now use degrees instead of radians (!)
- [Change] Vector.angleBetween() method now use degrees instead of radians
- [Change] Implemented Internals.getRawObjects(), getRawConstructions() and getRawPlants() methods
- [Bugfix] Fixed ModelImportSettings not working correctly
- [Bugfix] Fixed definitions not being reset properly on API reload
- [Bugfix] Fixed Server.getAllAreas()
- [Bugfix] Fixed Player.getOption() and setOption()
- [Bugfix] Fixed Player.setRotation() and Player.setViewDirection()
- [Bugfix] Fixed Player.setEquippedItem()
- [Bugfix] Fixed Player.setCreativeModeEnabled()
- [Bugfix] Fixed Player.disableClientsideKeys() only working for the first key
- [Bugfix] Fixed ObjectElement.setInfo() not working
- [Bugfix] Fixed (harmless) error message when using the UpdateEvent
- [Bugfix] Fixed UpdateEvent.getTpf()
- [Bugfix] Fixed PlayerObjectInteractionEvent
- [Bugfix] Fixed Utils.MathUtils.smoothstep()
- [Bugfix] Fixed crash when calling World.getDisabledNpcs()
- [Bugfix] Fixed Sound.stop() ignoring "immediately" parameter
Plugin API 0.6.7.2 (2023-07-06):
- [Change] Re-added missing weather definition fields
- [Change] PlayerCraftItemEvent now provides access to the recipe definition
- [Change] Server.addArea() no longer stores areas in database automatically (see new optional parameter)
- [Bugfix] Fixed Player.showStorage()
- [Bugfix] Fixed wrong area IDs for areas created through the API
- [Bugfix] Fixed crash when reloading API after placing areas through the API
This version uses Unity 2022.2.21. This is relevant if you want to build asset bundles containing custom shaders or VFX effects