v2023.0.1
Release Date 06/27/2023
Changes
- FIX a bug where the border component does not get properly re-initialized after its building has been converted to a new faction.
- FIX a bug where the building can get placed twice which can occur when a saved game is loaded.
- FIX a bug where the AudioManager has its Music audio clip fetcher field assigned with invalid/empty elements.
- FIX a bug with the Builder and ResourceCollector components when a target is locked but the movement path has not been generated in the same frame the target got locked in which causes unwanted behavior.
- FIX a bug with setting the initial health of a building where the building's construction complete event fails to fire.
- FIX the treasure prefab navmesh obstacle object size.
- FIX the order of updating the resource type's amount and capacity to enforce the minimum 0 on both the amount and capacity values.
- FIX a bug where a building that has not been completely constructed post placement is destroyed which created inconsistencies in the faction manager's entities counters.
- UPDATE main camera keyboard rotation, panning and rotation handlers to allow to specify the mouse button type in fields that trigger the respective main camera action instead of hard-defining it.
- UPDATE main camera rotation to include a field that defines the default rotation mode. Free rotation mode means the camera can rotate in any direction. Rotate Around mode allows to rotate the camera around the position it is currently looking at. Additionally, the new Alternative Rotation Control Type allows to switch to the alternative rotation mode when the associated control type is enabled.
- UPDATE main camera rotation to allow for vertical orbiting when the rotate around mode is enabled.
- UPDATE main camera controller handlers by replacing all fields of smooth factor by acceleration and deceleration value fields.
- UPDATE main camera zooming, panning and rotation speed fields to allow for a min and max value so that they all depend depend on the current zoom level/ratio (the direction of the ratio can also be inverted).
- UPDATE the main camera zoom handler field Use FOV to Use Camera Native Zoom which now works with both perspective (FOV) and orthographic (size) camera projection modes.
- ADD the On Requirement Missing Unity Event to the ResourceGenerator which is triggered every time the generator attempts to produce resources and the requirements are missing.
- ADD Cancel Task UI to UnitAttack and BuildingAttack which allows to define task UI data for a task that cancels an in-progress attack.
- ADD BuildingCreator as an entity component that can be attached to faction entities (units and buildings) and allows to define building placement tasks.
- ADD zoom to mouse option in keyboard zooming whcih can be enabled always or through a control type.
- ADD fields to define control types and factor/modifier values that allow to modify the panning, rotation, and zooming speed values by the factor value when the respective control types are enabled.
- ADD field that defines how smooth the main camera rotation reset is.
- ADD popup editor window with information and button to import preset layers and link documentation on first import of the RTS Engine.
API
- FIX a bug where enabling terrain attack when calling the LaunchAttack on the IAttackManager component resets the terrain attack enabled option when setting the attack target to the attacker faction entity.
- UPDATE IGameControlsManager to include mouse button related methods that take the type of the mouse button (left, right or wheel) as input.
Demo
- UPDATE position of the selection group UI panel.
- ADD win/lose game audio effects.
Modules
- Mirror Multiplayer
- FIX handling the situation where a network address and port is already used and a player attempts to start host or start server using that same network address and port.
- FIX freezing a multiplayer game when it starts while waiting for all clients to connect so that no client can bypass the initial freeze and send input to the server before all clients connect.
- Advanced Building Placement
- FIX a bug with placing multi sized building segments in the segmentation placement mode.
- Mobile Controls
- ADD zoom to middle option which can be enabled to zoom the camera towards the position between the two touch positions required to zoom.
- A* Pathfinding Project
- FIX a bug that resets the original path destination when there is no valid path to the original path destination and another destination around it must be targeted. This occurs when instructing a unit to move towards a building or a resource where the unit is supposed to move to the interaction position of the target object.
- UPDATE Recast and Grid graph demo scenes to have examples of collecting and dropping off resources.