Changes
Change how to setup and use an RPC
-
Change how to register RPC functions to use attributes ([ServerRpc], [AllRpc], [TargetRpc]). So register with function codes (
RegisterNetFunction()
) will be removed. This was applied to an entities classes. -
Change how to call RPC functions to use
RPC()
function (ChangesCallNetFunction()
to useRPC()
function).
I hope these changes, will makes it easier to understand codes for former UNET users.
Bugs Fixes
-
Fix
ShooterPlayerCharacterController
to avoid aimming to corpse to attack. -
Fix
PlayerCharacterController
andShooterPlayerCharacterController
to be able to select corpse to use resurrect skill. -
Fix
ShooterPlayerCharacterController
not update FOV when switch weapon while zooming. -
Fix wrong distance detection while entity attaches
DamageableHitBox
by attachUnHittable
component to entity to make attack functions not include entity's colliders as hit target, will use hit boxes as hit target instead. - Fix wrong distance between entities detection when use skills by uses physics overlapping.
- Fix wrong distance between entities detection when pickup items by uses physics overlapping.
- Fix wrong skill type filter condition when assign hotkey.
-
Fix wrong functions name that were set in
[InspectorButton]
attributes. - Fix ground detection not detect nearest ground position by change how to find ground position by set ray origin to above finding position, it was find ground position by set ray origin to finding position which sometime it won't work if ground is above finding position.
Improvements
-
Rename
CharacterModelManager
->fpsModelOffsets
tofpsModelPositionOffsets
, use it to set FPS hand model position offsets to camera's transform. -
Add
fpsModelRotationOffsets
toCharacterModelManager
component, use it to set FPS hand model rotation offsets to camera's transform. -
Add function to pickup nearby items. Now there is a function:
OnClickPickupNearbyItems()
inUIPickupItemList
component which showing how to use it. - Improve dismantle item function to be able to set amount of item.
-
Add function to bulk dismantle items to
BasePlayerCharacterEntity
, addUIBulkDismantleItems
for UI part. I also update demo UIs.
-
Add function to bulk sell items to
BasePlayerCharacterEntity
, addUIBulkSellItems
for UI part. I also update demo UIs.
-
Add
uiComparingEquipments
toUICharacterItem
, they will be shown when set UI's data while item data is equipment item.
-
Add
buttonName
setting toUIToggler
component to make it able to use button keys which set toProject Settings
->Input
orInputSettingManager
component to toggle UI. -
Can add
CLIENT_BUILD
toProject Settings
->Scripting Define Symbols
to strips server codes when compile.