Skip to content
027API变动列表

027API变动列表

[优化]统一使用命名空间mw并兼容省略

027版本中对所有原先的范围较大的命名空间例如【Gameplay】、【UI】、【Type】等进行命名空间隐藏处理。部分范围较小的命名空间例如【Events】、【SystemUtil】、【StringUtil】新增同名类对象,静态封装之前的方法。所有API统一使用mw命名空间且支持省略命名空间的调用方式以缩短调用链。

TypeScript
// 027修改前
InputUtil.onKeyDown(Type.Keys.Enter, async () => {
    let particle = await Core.GameObject.asyncSpawn({guid: "1001"}) as Gameplay.Particle;
    particle.worldLocation = Type.Vector.zero;
    particle.worldRotation = Type.Rotation.zero;
    particle.worldScale = Type.Vector.zero;
    particle.play();
});

// 027修改后
InputUtil.onKeyDown(Keys.Enter, async () => {
    let particle = await GameObject.asyncSpawn("1001") as Effect;
    particle.worldTransform.position = Vector.zero;
    particle.worldTransform.rotation = Rotation.zero;
    particle.worldTransform.scale = Vector.zero;
    particle.play();
});
// 027修改前
InputUtil.onKeyDown(Type.Keys.Enter, async () => {
    let particle = await Core.GameObject.asyncSpawn({guid: "1001"}) as Gameplay.Particle;
    particle.worldLocation = Type.Vector.zero;
    particle.worldRotation = Type.Rotation.zero;
    particle.worldScale = Type.Vector.zero;
    particle.play();
});

// 027修改后
InputUtil.onKeyDown(Keys.Enter, async () => {
    let particle = await GameObject.asyncSpawn("1001") as Effect;
    particle.worldTransform.position = Vector.zero;
    particle.worldTransform.rotation = Rotation.zero;
    particle.worldTransform.scale = Vector.zero;
    particle.play();
});

[修改]隐藏内部接口Mobile Editor

in[修改]删除资源预加载字段preloadAsset

由于资源相关改动,027版本不再支持代码使用preloadAssets属性去预加载资源(临时方案设计不合理)。脚本中若有使用需要删除否则会检测出编译报错。提前下载资源的方式只保留优先加载栏。027针对该改动做了兼容方案,所有老项目使用preloadAsset去预加载的资源,当在027版本编辑器打开项目时会自动进行读取导入至优先加载栏中,保证与之前效果相同。下图显示027对比026优先加载栏内多出的资源。

img

[修改] 枚举类型

枚举名称(老)枚举名称(新)修改方案
AssetType-删除
HideInEditorState-删除
RepType-删除
AbilityStateControlType-删除
AreaClass-删除
AudioPlayState-删除
CameraLocationModeCameraPositionMode
CameraMode-删除
EInitialOscillatorOffset-删除
EOscillatorWaveform-删除
HotWeaponCrossHairType-删除
InteractiveSlot-删除
ProjectileAccelerationEnableMode-删除
ProjectileCollisionMode-删除
ProjectileLineStyle-删除
SlotTypeHumanoidSlotType
SomatotypeFourFootStandard-删除

[删除]<类>AbilityObject 能力对象

  • 删除低频使用对象【AbilityObject】

[修改]<类>AbilityState 能力状态

  • 删除低频使用对象【AbilityState】

[删除]<类>AccountService 账号服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
  • 删除getOpenId()方法,去除OpenId概念,后续凡是与账号相关服务统一使用【Player】下userId属性。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceAccountServiceMethodDeclaration-
getOpenIdAccountServiceMethodDeclaration-

[修改]<类>AdsService 广告服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
  • 删除show()方法,替换为showAd()

img

img

上图示例中的callback是封装的回调事件,外部处理了成功后想要做些其他业务逻辑(比如弹出UI,换装等等,给奖励),如果自己实现的方法里没有使用callback,则直接在成功失败逻辑里去做想要干的事情即可

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceAdsServiceMethodDeclaration-
showAdsServiceMethodDeclarationshowAdAdsService

[修改]<类>AdvancedVehicle 高级轮式载具

  • 删除废弃方法getGearRatio,替换为getGearData
  • 删除设置方法setDriversetSimulatePhysicssetSteeringInputsetThrottleInput,替换为标准属性setter实现:ownersimulatePhysicssteeringInputthrottleInput
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getGearRatioAdvancedVehicleMethodDeclarationgetGearDataAdvancedVehicle
setDriverAdvancedVehicleMethodDeclarationownerAdvancedVehicle
setSimulatePhysicsAdvancedVehicleMethodDeclarationsimulatePhysicsAdvancedVehicle
setSteeringInputAdvancedVehicleMethodDeclarationsteeringInputAdvancedVehicle
setThrottleInputAdvancedVehicleMethodDeclarationthrottleInputAdvancedVehicle

[删除]<类>Anchor 空锚点

  • 因【Anchor】 空锚点运行态暂不具备任何特殊功能,且内部没有独立接口,删除对象。

[修改]<类>AnalyticsService 分析服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceAnalyticsServiceMethodDeclaration-

[删除]<类>AICharacter AI角色

  • 删除【AICharacter】类,统一使用【Character】类代表角色对象,消除角色对象之间的区别。
  • 删除内部私有defaultV1EditorDataJson属性。
  • 删除setServerMovementEnable方法和serverCalculateEnable属性,替换为【Character】类中新增属性complexMovementEnabledcomplexMovementEnabled默认为true,开启移动组件计算。complexMovementEnabled为false,关闭移动组件计算。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
setServerMovementEnableAICharacterMethodDeclarationcomplexMovementEnabledCharacter
defaultV1EditorDataJsonAICharacterPropertyDeclaration-
serverCalculateEnableAICharacterSetAccessorcomplexMovementEnabledCharacter

[修改]<类>Animation 动画

  • 027版本由【Animation】对象承担角色播放动画的功能
  • onAnimFinished事件委托替换为onFinish,去除时态。
  • rate属性替换为speed
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
onAnimFinishedAnimationGetAccessoronFinishAnimation
rateAnimationGetAccessorspeedAnimation
rateAnimationSetAccessorspeedAnimation

[修改]<namespace>AssetUtil 函数

  • 命名空间【AssetUtil】改为类【AssetUtil】。
  • 删除冗余接口isAssetExist()isAssetLoaded(),使用assetLoaded()代替。
  • 删除冗余接口loadAsset()asyncDownloadAsset()会自动加载已下载资源。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
assetLoaded-FunctionDeclarationassetLoadedAssetUtil替换
asyncDownloadAsset-FunctionDeclarationasyncDownloadAssetAssetUtil替换
isAssetExist-FunctionDeclarationassetLoadedAssetUtil替换
isAssetLoaded-FunctionDeclarationassetLoadedAssetUtil替换
loadAsset-FunctionDeclarationasyncDownloadAssetAssetUtil替换

[修改]<类>AvatarSettings 人物设置

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
enableOptimizationAvatarSettingsMethodDeclarationoptimizationEnabledAvatarSettings
isOptimizationEnabledAvatarSettingsMethodDeclarationoptimizationEnabledAvatarSettings

[修改]<类>Base 基类

  • guid属性修改为gameObjectId
  • 删除对象的无效属性useUpdate(仅保留脚本的属性)。
  • 删除对象生命周期方法onDestroyonReplicatedonStartonUpdate(仅保留脚本的方法)。
  • 删除单双端判定方法isRunningClient(仅保留脚本的方法)。
  • 删除内部接口arrayDefaultItem
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
guidBaseGetAccessorgameObjectIdBase替换
useUpdateBaseGetAccessor-删除
useUpdateBaseSetAccessor-删除
arrayDefaultItemBaseMethodDeclaration-删除
isRunningClientBaseMethodDeclaration-删除
onDestroyBaseMethodDeclaration-删除
onReplicatedBaseMethodDeclaration-删除
onStartBaseMethodDeclaration-删除
onUpdateBaseMethodDeclaration-删除

[删除]<类>BlockingArea 禁行区

  • 原先的【BlockingArea】修改为【BlockingVolume】,空间区域统一使用Volume。
  • 删除失效属性playerStateResponse
  • 删除针对角色设置通行权限的方法setCurrentPlayerPassablegetCurrentPlayerPassable。后续统一使用同一个接口控制【GameObject】的通行权限。

setCurrentPlayerPassable:false使用removePassableTarget进行替换。

setCurrentPlayerPassable:true使用addPassableTarget进行替换。

img

getCurrentPlayerPassable使用getTargetPassable进行替换。

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getCurrentPlayerPassableBlockingAreaMethodDeclarationgetTargetPassableBlockingVolume
setBlockAllPlayerBlockingAreaMethodDeclarationclearBlockingVolume需要看原有需求更换如果原来括号内为true(设置所有人禁行)需要改为clear()如果原来括号内为false(设置所有人都可通过)需要改为unblockAll()
setCurrentPlayerPassableBlockingAreaMethodDeclarationaddPassableTargetBlockingVolume
setNonCharacterActorCanPassBlockingAreaMethodDeclarationaddPassableTargetBlockingVolume

[删除]<类>BlockingAreaManager 禁行区管理

  • 删除【BlockingAreaManager】,不再提供全局禁行区对象的管理类。

[删除]<类>CameraShake 摄像机抖动

  • 【CameraShake】类修改为【CameraShakeInfo】接口,迁移其中关于抖动数据的属性。
  • 【CameraShake】类中的start方法迁移至新增【Camera】对象中已静态方法的方式实现。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
pitchAmplitudeCameraShakeMethodDeclarationrotationYAmplitudeCameraShakeInfo
pitchFrequencyCameraShakeMethodDeclarationrotationYFrequencyCameraShakeInfo
rollAmplitudeCameraShakeMethodDeclarationrotationXAmplitudeCameraShakeInfo
rollFrequencyCameraShakeMethodDeclarationrotationXFrequencyCameraShakeInfo
startCameraShakeMethodDeclarationswitchCamera
xAmplitudeCameraShakeMethodDeclarationpositionXAmplitudeCameraShakeInfo
xFrequencyCameraShakeMethodDeclarationpositionXFrequencyCameraShakeInfo
yAmplitudeCameraShakeMethodDeclarationpositionYAmplitudeCameraShakeInfo
yFrequencyCameraShakeMethodDeclarationpositionYFrequencyCameraShakeInfo
yawAmplitudeCameraShakeMethodDeclarationrotationZAmplitudeCameraShakeInfo
yawFrequencyCameraShakeMethodDeclarationrotationZFrequencyCameraShakeInfo
zAmplitudeCameraShakeMethodDeclarationpositionZAmplitudeCameraShakeInfo
zFrequencyCameraShakeMethodDeclarationpositionZFrequencyCameraShakeInfo

[删除]<类>CameraSystem 摄像机系统

  • 原有【CameraSystem】替换为【Camera】,将摄像机与玩家角色解耦并继承【GameObject】成为游戏对象。支持场景摆放,挂载卸载和动态生成销毁切换等操作,实现逻辑上的多相机。

  • 解构摄像机系统:弹簧臂+镜头,抽象SpringArm弹簧臂对象包裹原先实际操作弹簧臂的接口。每个Camera摄像机对象持有一个SpringArm弹簧臂对象。

  • 新增switch静态方法在多个相机对象之间进行切换,切换过程可以通过参数自定义摄像机运动。同时新增onSwitchComplete事件委托,用户可以待摄像机切换完成时执行绑定函数。此外删除moveByPath方法,后续摄像机路径移动可以通过switch方法代替。

  • 删除摄像机抖动对象cameraShake,通过Camera类调用新增shake/stopShake静态方法抖动/停止抖动摄像机,抖动数据【CameraShakeInfo】和抖动时间作为参数传入。

  • 删除摄像机锁定方法:cameraLockTargetcancelCameraLockTargetsetCameraLockTarget。【Camera】新增lockunlock方法控制摄像机锁定对象。此外删除lockTargetOffset属性,该属性的功能需要使用锁定方法中的lockOffset参数代替。此外新增lookAt方法执行方便用户执行单次锁定。

  • 删除摄像机聚焦方法:cameraFocusing。删除摄像机聚焦属性:cameraFocusEnable。聚焦动作可通过用户设置摄像机坐标或者使用switch静态方法实现。

  • 删除原先透视开关fadeEffectEnable和透明度fadeEffectValue接口,使用fadeObstructionEnabledfadeObstructionOpacity代替。此外删除enableFadeEffect废弃接口。

  • 删除摄像机投影模式(后续只有透视模式)以及相关功能:cameraProjectionModeorthoFarClipPlaneorthoNearClipPlaneorthoWidth。如果需要使用正交模式(例如制作固定视角休闲游戏),推荐使用视场=35度(或更小),并同时调大摄像机距离等参数来模拟正交模式。

  • 删除摄像机移动碰撞检测相关接口:enableMovementCollisionDetectionmovementCollisionDurationmovementCollisionMinLocationDelta

  • 删除遮挡检测接口:occlusionDetectionEnable

  • 删除摄像机跟随接口:followTargetEnablefollowTargetInterpSpeedcancelCameraFollowTargetsetCameraFollowTarget,后续摄像机通过使用【Gaemobject】的parent属性去挂载/卸载其他对象来实现跟随。

  • 删除摄像机抬高接口:raiseCameraEnableraiseCameraHeight,后续摄像机开启弹簧臂碰撞时会伸缩,而关闭弹簧臂碰撞时可以选择透视。

  • 删除摄像机模拟真实晃动开关属性realEffectEnable

  • 删除摄像机整体参数设置接口:applySettingsgetCurrentSettings

  • 删除摄像机覆盖控制器旋转接口:setOverrideCameraRotationresetOverrideCameraRotation。玩家控制器旋转由【Player】新增的setControllerRotationgetControllerRotation替换。

  • 删除摄像机位置模式cameraLocationMode,替换为positionMode。此外原先设置为”固定”模式时,摄像机弹簧臂会采用相对坐标作为自己的世界位置。而027版本设置为fixed模式会沿用世界位置。所以027如果希望还原026效果,需在替换接口前加上下列代码:

    typescript
    // 拿到摄像机
    let camera = Camera.currentCamera;
    // 先在切换位置模式前拿到摄像机对象相对挂载对象的相对偏移
    let tempOffset = camera.springArm.localTransform.position;
    // 切换模式,摄像机不再挂载父节点
    camera.positionMode = CameraPositionMode.PositionFixed;
    // 将相对偏移值设置为世界坐标
    camera.springArm.worldTransform.position = tempOffset;
    // 执行下列操作
    // 拿到摄像机
    let camera = Camera.currentCamera;
    // 先在切换位置模式前拿到摄像机对象相对挂载对象的相对偏移
    let tempOffset = camera.springArm.localTransform.position;
    // 切换模式,摄像机不再挂载父节点
    camera.positionMode = CameraPositionMode.PositionFixed;
    // 将相对偏移值设置为世界坐标
    camera.springArm.worldTransform.position = tempOffset;
    // 执行下列操作
  • 删除摄像机旋转模式cameraRotationMode,替换为rotationMode。此外原先设置为”固定”模式时,摄像机弹簧臂会采用(0,0,0)作为自己的世界旋转。而027版本设置为fixed模式会沿用上一帧控制器旋转值(摄像机相对于挂载对象的旋转)。所以027如果希望还原026效果,需在替换接口前加上下列代码:

    typescript
    // 拿到摄像机
    let camera = Camera.currentCamera;
    // 切换模式,摄像机不再受控制器旋转影响
    camera.rotationMode = CameraRotationMode.RotationFixed;
    // 将弹簧臂世界旋转设置为(0,0,0)
    camera.springArm.worldTransform.rotation = Rotation.zero;
    // 执行下列操作
    // 拿到摄像机
    let camera = Camera.currentCamera;
    // 切换模式,摄像机不再受控制器旋转影响
    camera.rotationMode = CameraRotationMode.RotationFixed;
    // 将弹簧臂世界旋转设置为(0,0,0)
    camera.springArm.worldTransform.rotation = Rotation.zero;
    // 执行下列操作
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
cameraCollisionEnableCameraSystemGetAccessorspringArm.collisionEnabledCamera
cameraCollisionInterpSpeedCameraSystemGetAccessorspringArm.collisionInterpSpeedCamera
cameraDownLimitAngleCameraSystemGetAccessordownAngleLimitCamera
cameraFOVCameraSystemGetAccessorfovCamera
cameraFocusEnableCameraSystemGetAccessor-
cameraLocationLagEnableCameraSystemGetAccessorpositionLagEnabledCamera
cameraLocationLagSpeedCameraSystemGetAccessorpositionLagSpeedCamera
cameraLocationModeCameraSystemGetAccessorpositionModeCamera
cameraProjectionModeCameraSystemGetAccessor-
cameraRelativeTransformCameraSystemGetAccessorlocalTransformCamera
cameraRotationLagEnableCameraSystemGetAccessorrotationLagEnabledCamera
cameraRotationLagSpeedCameraSystemGetAccessorrotationLagSpeedCamera
cameraRotationModeCameraSystemGetAccessorrotationModeCamera
cameraSystemRelativeTransformCameraSystemGetAccessorspringArm.localTransformCamera
cameraSystemWorldTransformCameraSystemGetAccessorspringArm.worldTransformCamera
cameraUpLimitAngleCameraSystemGetAccessorupAngleLimitCamera
cameraWorldTransformCameraSystemGetAccessorworldTransformCamera
enableMovementCollisionDetectionCameraSystemGetAccessor-
fadeEffectEnableCameraSystemGetAccessorfadeObstructionEnabledCamera
fadeEffectValueCameraSystemGetAccessorfadeObstructionOpacityCamera
fixedCameraZAxisCameraSystemGetAccessorfixedElevationCamera
followTargetEnableCameraSystemGetAccessor-
followTargetInterpSpeedCameraSystemGetAccessor-
lockTargetOffsetCameraSystemGetAccessor-
movementCollisionDurationCameraSystemGetAccessor-
movementCollisionMinLocationDeltaCameraSystemGetAccessor-
occlusionDetectionEnableCameraSystemGetAccessor-
orthoFarClipPlaneCameraSystemGetAccessor-
orthoNearClipPlaneCameraSystemGetAccessor-
orthoWidthCameraSystemGetAccessor-
raiseCameraEnableCameraSystemGetAccessor-
raiseCameraHeightCameraSystemGetAccessor-
slotOffsetCameraSystemGetAccessorlocalTransform.positionCamera
targetArmLengthCameraSystemGetAccessorspringArm.lengthCamera
targetOffsetCameraSystemGetAccessorspringArm.localTransform.positionCamera
transformCameraSystemGetAccessorworldTransformCamera
usePawnControlRotationCameraSystemGetAccessorspringArm.useControllerRotationCamera
cameraCollisionEnableCameraSystemSetAccessorspringArm.collisionEnabledCamera
cameraCollisionInterpSpeedCameraSystemSetAccessorspringArm.collisionInterpSpeedCamera
cameraDownLimitAngleCameraSystemSetAccessordownAngleLimitCamera
cameraFOVCameraSystemSetAccessorfovCamera
cameraFocusEnableCameraSystemSetAccessor-
cameraLocationLagEnableCameraSystemSetAccessorpositionLagEnabledCamera
cameraLocationLagSpeedCameraSystemSetAccessorpositionLagSpeedCamera
cameraLocationModeCameraSystemSetAccessorpositionModeCamera
cameraProjectionModeCameraSystemSetAccessor-
cameraRelativeTransformCameraSystemSetAccessorlocalTransformCamera
cameraRotationLagEnableCameraSystemSetAccessorrotationLagEnabledCamera
cameraRotationLagSpeedCameraSystemSetAccessorrotationLagSpeedCamera
cameraRotationModeCameraSystemSetAccessorrotationModeCamera
cameraSystemRelativeTransformCameraSystemSetAccessorspringArm.localTransformCamera
cameraSystemWorldTransformCameraSystemSetAccessorspringArm.worldTransformCamera
cameraUpLimitAngleCameraSystemSetAccessorupAngleLimitCamera
cameraWorldTransformCameraSystemSetAccessorworldTransformCamera
enableMovementCollisionDetectionCameraSystemSetAccessor-
fadeEffectEnableCameraSystemSetAccessor-
fadeEffectValueCameraSystemSetAccessor-
fixedCameraZAxisCameraSystemSetAccessorfixedElevationCamera
followTargetEnableCameraSystemSetAccessor-
followTargetInterpSpeedCameraSystemSetAccessor-
lockTargetOffsetCameraSystemSetAccessor-
movementCollisionDurationCameraSystemSetAccessor-
movementCollisionMinLocationDeltaCameraSystemSetAccessor-
occlusionDetectionEnableCameraSystemSetAccessor-
orthoFarClipPlaneCameraSystemSetAccessor-
orthoNearClipPlaneCameraSystemSetAccessor-
orthoWidthCameraSystemSetAccessor-
raiseCameraEnableCameraSystemSetAccessor-
raiseCameraHeightCameraSystemSetAccessor-
realEffectEnableCameraSystemSetAccessor-
slotOffsetCameraSystemSetAccessorlocalTransform.positionCamera
targetArmLengthCameraSystemSetAccessorspringArm.lengthCamera
targetOffsetCameraSystemSetAccessorspringArm.localTransform.positionCamera
usePawnControlRotationCameraSystemSetAccessorspringArm.useControllerRotationCamera
cameraShakeCameraSystemPropertyDeclaration-
currentCameraModeCameraSystemPropertyDeclaration-
enableFadeEffectCameraSystemPropertyDeclaration-
occludeCameraActorCameraSystemPropertyDeclaration-
applySettingsCameraSystemMethodDeclaration-
attachCameraToCharacterCapsuleSlotCameraSystemMethodDeclarationattachToSlotCharacter
attachCameraToCharacterMeshSlotCameraSystemMethodDeclarationparentCamera
attachToGameObjectCameraSystemMethodDeclaration-
cameraFocusingCameraSystemMethodDeclaration-
cameraLockTargetCameraSystemMethodDeclarationlockCamera
cancelCameraFollowTargetCameraSystemMethodDeclarationparentCamera
cancelCameraLockTargetCameraSystemMethodDeclarationunlockCamera
getCurrentSettingsCameraSystemMethodDeclaration-
getDefaultCameraShakeDataCameraSystemMethodDeclaration-
moveByPathCameraSystemMethodDeclaration-
resetOverrideCameraRotationCameraSystemMethodDeclaration-
screenShockCameraSystemMethodDeclarationshakeCamera
setCameraFollowTargetCameraSystemMethodDeclarationparentCamera
setCameraLockTargetCameraSystemMethodDeclarationlockCamera
setOverrideCameraRotationCameraSystemMethodDeclarationsetControllerRotationPlayer
startCameraShakeCameraSystemMethodDeclarationshakeCamera
stopCameraShakeCameraSystemMethodDeclarationstopShakeCamera
switchCameraModeCameraSystemMethodDeclarationpresetCamera

[修改]<类>Character 角色

  • 为消除角色对象之间的区别,统一使用【Character】类代表场景中的角色对象,将原先【CharacterBase】的基础能力进行抽象并封装进【Character】。
  • 删除原先【Character】中的技能接口:onSkillTriggered等。使用【InputUtil】代替。
  • 删除属性cameraSystem,将摄像机与玩家角色解耦并继承【GameObject】成为游戏对象。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
onSkill1TriggeredCharacterGetAccessoronKeyUpInputUtil
onSkill2TriggeredCharacterGetAccessoronKeyUpInputUtil
onSkill3TriggeredCharacterGetAccessoronKeyUpInputUtil
onSkill4TriggeredCharacterGetAccessoronKeyUpInputUtil
onSkill5TriggeredCharacterGetAccessoronKeyUpInputUtil

[删除]<类>CharacterBase 角色基类

  • 为消除角色对象之间的区别,统一使用【Character】类代表场景中的角色对象,将原先【CharacterBase】代表角色基础能力的接口迁移进【Character】。
  • 删除空中灵活度控制接口:airControlBoostMultiplierairControlBoostVelocityThreshold,同时空中灵活度接口airControl替换为driftControl;空中减速接口brakingDecelerationFalling替换为horizontalBrakingDecelerationFalling。减低理解难度。
  • 删除角色动画模式animationMode,用户不再需要手动切换。动画模式会根据角色类型:人形->Auto(自带动画状态机),四足:Custom(手动播动画),由编辑器自动切换。
  • 删除动画姿态(二级姿态)属性animationStance,动画姿态(二级姿态)从角色中提出,采用【SubStance】对象承接原来的接口。animationStance替换为currentSubStance.assetId。原先角色修改动画姿态ID会使角色播放该姿态,替换为currentSubStance.playcurrentSubStance.play。原先角色修改动画姿态ID为空会停止播放姿态,替换为currentSubStance.stop。删除加载动画姿态(二级姿态)方法loadStance,替换为loadSubStance。删除停止当前动画姿态(二级姿态)方法stopStance,替换为currentSubStance.stop
  • 删除基础姿态属性basicStance,基础姿态从角色中提出,采用【Stance】对象承接原来的接口。basicStance替换为currentStance.assetId。原先角色修改基础姿态ID会使角色播放该姿态,替换为currentStance.playcurrentStance.play。原先角色修改基础姿态ID为空会停止播放姿态,替换为currentStance.stop

img

img

image-20231018115730792

image-20231018115812103

  • 删除角色外观对象属性appearance,替换为角色描述description。角色外观由原来的层级对象修改为配置表形式,统一使用【CharacterDescription】描述。设置/获取外观方法getAppearancesetAppearance替换为getDescriptionsetDescription。清空角色外观方法clearAppearance替换为clearDescription,其中参数设置为appearance: true。此外删除角色外观设置权限属性canSetAppearanceData

    img

img

  • 删除清空角色挂件方法clearDecorations,替换为clearDescription,其中参数设置为slotAndDecoration: true。删除清空单个挂件方法clearOneDecoration、删除获取角色挂件对象列表方法getDecorations,两者都需要使用【CharacterDescription】中的挂件配置项,去访问具体插槽挂件数组description.advance.slotAndDecoration.slot["SlotName"].decoration,前者可以调用delete方法删除挂件,后者可以访问数组中的元素。删除加载插槽数据方法loadSlotAndEditorDataByGuid替换为setDescription。此外删除加载挂件方法loadDecorationloadSlotAndEditorDataByPath
  • 删除角色外观分类属性appearanceType,替换为角色类型characterType
  • 删除角色阴影控制属性:baseShadowLocationOffsetbaseShadowMaxVisibleHeightbaseShadowScale。后续角色阴影由编辑器底层控制。
  • 删除角色碰撞相关接口:capsuleRadiuscapsuleHalfHeight。由于后续角色碰撞体支持多种形状,碰撞范围接口替换为collisionExtent。删除角色碰撞开关collisionEnable,替换为setCollisiongetCollision方法。此外collisionWithOtherCharacterEnable替换为collisionWithOtherCharacterEnabled。删除角色胶囊体矫正属性usedCapsuleCorrection,替换为capsuleCorrectionEnabled
  • 角色头顶显示名称characterName替换为displayName。头顶UI获取方法getHeadUIWidget替换为只读属性overheadUI。此外原先成员属性headUIVisibleheadUIVisibleRange由于功能是作用于场景中全部对象,所以删除后替换为静态属性nameVisiblenameDisplayDistance
  • 角色是否可被站立属性canStepUpOn替换为canStandOn
  • 角色下蹲能力开关crouchEnable替换为crouchEnabled;角色移动能力开关moveEnable替换为moveEnabled;角色跳跃能力开关jumpEnable替换为jumpEnabled;角色跳跃出水能力开关jumpingOutOfWaterEnable替换为canJumpOutOfWater;角色布娃娃开关ragdollEnable替换为ragdollEnabled。角色摩擦单独生效属性separateBrakingFrictionEnable,替换为groundFrictionEnabled,此处需注意原先属性值false对应新属性值true,原先属性值true对应新属性值false。
  • 删除角色本地可见性属性locallyVisible,后续在客户端使用setVisibilitygetVisibility替换。删除角色同步可见性属性visible,后续在服务端使用setVisibilitygetVisibility替换。删除角色本地可见性接口setLocallyVisibility,在客户端使用setVisibility替换。
  • 角色移动模式属性movementState替换为movementMode,同时移动模式变化委托onMovementStateChanged替换为onMovementModeChange
  • 角色大小属性scale替换为角色持有的【worldTransform】中scale属性。
  • 删除角色换装完成委托onLoadAppearanceDataAllCompletedonLoadDecorationsAllCompletedonSetAppearanceDataCompleted。三者合并为角色描述加载完成委托onDescriptionComplete。删除角色外观变化委托onMeshChangedonTextureChanged。两者合并为角色描述变化完成委托onDescriptionChange,其中传出操作码标识发生变化的属性。此外角色外观异步等待函数`appearanceReady直接删除。

img

img

  • 【Character】对象继承【Pawn】对象新增player属性,玩家角色player为控制玩家,NPCplayer为空。
  • 删除增加角色移动输入方法addMoveInput,替换为addMovement
  • 删除角色attach方法,将对象插入角色插槽使用attachToSlot替换。同时新增detachFromSlotdetachAllFromSlot方法卸载角色插槽挂载的对象。
  • 删除获取玩家控制器旋转方法getControlRotator,替换为【Player】对象中的静态方法getControllerRotation。同时新增setControllerRotation方法搭配使用。
  • 删除获取角色插槽名称方法getSlotName,通过TS语法可以直接在枚举名称和值之间转化。
  • 删除角色播放动画方法playAnimationplayAnimationLocally,替换为loadAnimation().play()分别在服务端调用和客户端调用。删除角色判断动画播放状态接口isPlayingAnimation,替换为currentAnimation.isPlaying。删除角色停止动画接口stopAnimation,替换为currentAnimation.stop
  • 删除角色上浮/下潜接口swimmingDownswimmingUp,分别替换为swimDownswimUp
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
airControlCharacterBaseGetAccessordriftControlCharacter
airControlBoostMultiplierCharacterBaseGetAccessor-
airControlBoostVelocityThresholdCharacterBaseGetAccessor-
animationModeCharacterBaseGetAccessor-
animationStanceCharacterBaseGetAccessorcurrentSubStance.assetIdSubStance
appearanceCharacterBaseGetAccessordescriptionCharacter
appearanceTypeCharacterBaseGetAccessorcharacterTypeCharacter
baseShadowLocationOffsetCharacterBaseGetAccessor-
baseShadowMaxVisibleHeightCharacterBaseGetAccessor-
baseShadowScaleCharacterBaseGetAccessor-
basicStanceCharacterBaseGetAccessorcurrentStance.assetIdStance
basicStanceAimOffsetEnableCharacterBaseGetAccessorcurrentStance.aimOffsetEnabledStance
brakingDecelerationFallingCharacterBaseGetAccessorhorizontalBrakingDecelerationFallingCharacter
canSetAppearanceDataCharacterBaseGetAccessor-
canStepUpOnCharacterBaseGetAccessorcanStandOnCharacter
capsuleHalfHeightCharacterBaseGetAccessorcollisionExtent.zVector
capsuleRadiusCharacterBaseGetAccessorMax(collisionExtent.x, collisionExtent.y)Vector
characterNameCharacterBaseGetAccessordisplayNameCharacter
collisionEnableCharacterBaseGetAccessorsetCollisionCharacter
collisionWithOtherCharacterEnableCharacterBaseGetAccessorcollisionWithOtherCharacterEnabledCharacter
crouchEnableCharacterBaseGetAccessorcrouchEnabledCharacter
headUIVisibleCharacterBaseGetAccessornameVisibleCharacter
headUIVisibleRangeCharacterBaseGetAccessornameDisplayDistanceCharacter
jumpEnableCharacterBaseGetAccessorjumpEnabledCharacter
jumpingOutOfWaterEnableCharacterBaseGetAccessorcanJumpOutOfWaterCharacter
locallyVisibleCharacterBaseGetAccessorsetVisibilityGameObject
moveEnableCharacterBaseGetAccessormovementEnabledCharacter
movementStateCharacterBaseGetAccessormovementModeCharacter
outOfWaterZCharacterBaseGetAccessoroutOfWaterVerticalSpeedCharacter
ragdollEnableCharacterBaseGetAccessorragdollEnabledCharacter
scaleCharacterBaseGetAccessorworldTransform.scaleTransform
separateBrakingFrictionEnableCharacterBaseGetAccessorgroundFrictionEnabledCharacter
usedCapsuleCorrectionCharacterBaseGetAccessorcapsuleCorrectionEnabledCharacter
visibleCharacterBaseGetAccessorgetVisibilityGameObject
airControlCharacterBaseSetAccessordriftControlCharacter
airControlBoostMultiplierCharacterBaseSetAccessor-
airControlBoostVelocityThresholdCharacterBaseSetAccessor-
animationModeCharacterBaseSetAccessor-
animationStanceCharacterBaseSetAccessorcurrentSubStance.assetIdSubStance
appearanceTypeCharacterBaseSetAccessorcharacterTypeCharacter
baseShadowLocationOffsetCharacterBaseSetAccessor-
baseShadowMaxVisibleHeightCharacterBaseSetAccessor-
baseShadowScaleCharacterBaseSetAccessor-
basicStanceCharacterBaseSetAccessorcurrentStance.assetIdStance
basicStanceAimOffsetEnableCharacterBaseSetAccessorcurrentStance.aimOffsetEnabledStance
brakingDecelerationFallingCharacterBaseSetAccessorhorizontalBrakingDecelerationFallingCharacter
canStepUpOnCharacterBaseSetAccessorcanStandOnCharacter
capsuleHalfHeightCharacterBaseSetAccessorcollisionExtent.zVector
capsuleRadius
image-20231018104421962
CharacterBaseSetAccessorMax(collisionExtent.x, collisionExtent.y)
image-20231018104501331
Vector
characterNameCharacterBaseSetAccessordisplayNameCharacter
collisionEnableCharacterBaseSetAccessorsetCollisionCharacter
collisionWithOtherCharacterEnableCharacterBaseSetAccessorcollisionWithOtherCharacterEnabledCharacter
crouchEnableCharacterBaseSetAccessorcrouchEnabledCharacter
headUIVisibleCharacterBaseSetAccessornameVisibleCharacter
headUIVisibleRangeCharacterBaseSetAccessornameDisplayDistanceCharacter
jumpEnableCharacterBaseSetAccessorjumpEnabledCharacter
jumpingOutOfWaterEnableCharacterBaseSetAccessorcanJumpOutOfWaterCharacter
locallyVisibleCharacterBaseSetAccessorsetVisibilityGameObject
moveEnableCharacterBaseSetAccessormovementEnabledCharacter
outOfWaterZCharacterBaseSetAccessoroutOfWaterVerticalSpeedCharacter
ragdollEnableCharacterBaseSetAccessorragdollEnabledCharacter
scaleCharacterBaseSetAccessorworldTransform.scaleTransform
separateBrakingFrictionEnableCharacterBaseSetAccessorgroundFrictionEnabledCharacter
usedCapsuleCorrectionCharacterBaseSetAccessorcapsuleCorrectionEnabledCharacter
visibleCharacterBaseSetAccessorgetVisibilityGameObject
onLoadAppearanceDataAllCompletedCharacterBasePropertyDeclarationonDescriptionCompleteCharacter
onLoadDecorationsAllCompletedCharacterBasePropertyDeclarationonDescriptionCompleteCharacter
onMeshChangedCharacterBasePropertyDeclarationonDescriptionChangeCharacter
onMovementStateChangedCharacterBasePropertyDeclarationonMovementModeChangeCharacter
onSetAppearanceDataCompletedCharacterBasePropertyDeclarationonDescriptionCompleteCharacter
onTextureChangedCharacterBasePropertyDeclarationonDescriptionChangeCharacter
playerCharacterBasePropertyDeclarationplayerPawn
addMoveInputCharacterBaseMethodDeclarationaddMovementCharacter
appearanceReadyCharacterBaseMethodDeclaration-GameObject
attachCharacterBaseMethodDeclarationattachToSlotCharacter
clearAppearanceCharacterBaseMethodDeclarationclearDescriptionCharacter
clearDecorationsCharacterBaseMethodDeclarationclearDescriptionCharacter
clearOneDecorationCharacterBaseMethodDeclarationdescription.advance.slotAndDecoration.slot["SlotName"].decoration.delete()Character
detachFromGameObjectCharacterBaseMethodDeclarationparentGameObject
getAppearanceCharacterBaseMethodDeclarationgetDescriptionCharacter
getControlRotatorCharacterBaseMethodDeclarationgetControllerRotationPlayer
getDecorationsCharacterBaseMethodDeclaration-
getHeadUIWidgetCharacterBaseMethodDeclarationoverheadUICharacter
getSlotNameCharacterBaseMethodDeclaration-
isPlayingAnimationCharacterBaseMethodDeclarationcurrentAnimation.isPlayingAnimation
loadDecorationCharacterBaseMethodDeclarationsetDescriptionCharacter
loadSlotAndEditorDataByGuidCharacterBaseMethodDeclarationsetDescriptionCharacter
loadSlotAndEditorDataByPathCharacterBaseMethodDeclaration-
loadStanceCharacterBaseMethodDeclarationloadSubStanceCharacter
playAnimationCharacterBaseMethodDeclarationloadAnimation().play()Animation
playAnimationLocallyCharacterBaseMethodDeclarationloadAnimation().play()Animation
setAppearanceCharacterBaseMethodDeclarationsetDescriptionCharacter
setLocallyVisibilityCharacterBaseMethodDeclarationsetVisibilityGameObject
stopAnimationCharacterBaseMethodDeclarationcurrentAnimation.stop()Animation
stopStanceCharacterBaseMethodDeclarationcurrentSubStance.stop()SubStance
swimmingDownCharacterBaseMethodDeclarationswimDownCharacter
swimmingUpCharacterBaseMethodDeclarationswimUpCharacter

[修改]<类>ChatService 聊天服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceChatServiceMethodDeclaration-

[修改]<namespace>Core 函数

027上Core相关命名空间已经被删除,027相关接口如有替换则需要修改,否则直接删除Core即可,如下所示:

image-20231017113709284

image-20231017114546301

枚举名称(老)枚举名称(新)修改方案
ClassComponent替换
FunctionRemoteFunction替换
TypeSerializable替换

[修改]<namespace>DataStorage 数据存储

  • 命名空间【DataStorage】改为类【DataStorage】。
  • 数据存储统一使用一套接口,不再区分玩家数据和自定义数据。之前使用含player的玩家数据接口,key值统一为Player的userId。027版本使用新接口,传入userId作为key的参数即可获取之前的数据。

asyncGetPlayerDataasyncGetCustomData合并,->asyncGetData

027版本Get方法返回类型修改为【DataStorageResult】结构和替换方案如下图所示:

image-20231020183601244

asyncSetPlayerDataasyncSetCustomData合并,->asyncSetData

asyncRemoveCustomData和asyncRemovePlayerData合并,->asyncRemoveData

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
asyncGetCustomData-FunctionDeclarationasyncGetDataDataStorage替换
asyncGetOtherGameData-FunctionDeclarationasyncGetOtherGameDataDataStorage替换
asyncGetPlayerData-FunctionDeclaration-
asyncRemoveCustomData-FunctionDeclarationasyncRemoveDataDataStorage替换
asyncRemovePlayerData-FunctionDeclaration-
asyncSetCustomData-FunctionDeclarationasyncSetDataDataStorage替换
asyncSetOtherGameData-FunctionDeclarationasyncSetOtherGameDataDataStorage替换
asyncSetPlayerData-FunctionDeclaration-
setTemporaryStorage-FunctionDeclarationsetTemporaryStorageDataStorage替换
sizeOfData-FunctionDeclarationgetDataSizeDataStorage替换

[修改]<类>DataCenterC 数据中心客户端

  • 去除getInstance,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceDataCenterCMethodDeclaration-

[修改]<类>DataCenterS 数据中心服务端

  • 去除getInstance,缩短调用链。
  • onPlayerJoinedonPlayerLeft事件委托替换为onPlayerJoinonPlayerLeave,去除时态。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceDataCenterSMethodDeclaration-
onPlayerJoinedDataCenterSPropertyDeclarationonPlayerJoinDataCenterS
onPlayerLeftDataCenterSPropertyDeclarationonPlayerLeaveDataCenterS

[修改]<类>DebugService 聊天服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceDebugServiceMethodDeclaration-

[删除]<类>Decoration 挂件数据

  • 删除【Decoration】挂件数据类,后续统一使用【CharacterDescription】挂件数据对象。

[删除]<类>DirectionalLight 平行光

  • 删除【DirectionalLight】平行光,接口修改为静态调用形式迁移至新增对象【Lighting】。
  • 删除继承自【GameObject】的接口,【Lighting】不继承【GameObject】。
  • 删除光强intensity,替换为brightness
  • 删除无效属性baseShadowEnable
  • 删除阴影投影castShadowsEnable,替换为castShadowsEnabled
  • 删除色温temperature,替换为temperatureEnabled
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
baseShadowEnableDirectionalLightGetAccessor-
castShadowsEnableDirectionalLightGetAccessorcastShadowsEnabledLighting
intensityDirectionalLightGetAccessorbrightnessLighting
lightColorDirectionalLightGetAccessorlightColorLighting
pitchAngleDirectionalLightGetAccessorpitchAngleLighting
temperatureDirectionalLightGetAccessortemperatureLighting
temperatureEnableDirectionalLightGetAccessortemperatureEnabledLighting
yawAngleDirectionalLightGetAccessoryawAngleLighting
baseShadowEnableDirectionalLightSetAccessor-
castShadowsEnableDirectionalLightSetAccessorcastShadowsEnabledLighting
intensityDirectionalLightSetAccessorbrightnessLighting
lightColorDirectionalLightSetAccessorlightColorLighting
pitchAngleDirectionalLightSetAccessorpitchAngleLighting
temperatureDirectionalLightSetAccessortemperatureLighting
temperatureEnableDirectionalLightSetAccessortemperatureEnabledLighting
yawAngleDirectionalLightSetAccessoryawAngleLighting

[删除]<类>EffectLogical 区域效果

  • 删除低频使用对象【EffectLogical】

[修改]<类>EffectService 特效服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。成员函数全部封装成静态方法。
  • 删除clearAll()方法,屏蔽用户对内部对象池的操作带来的风险。
  • 新增playOnGameObject方法,参数使用联合类型来实现playEffectOnPlayerplayEffectOnGameObject两个方法的功能。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
clearAllEffectServiceMethodDeclaration-
getEffectGameObjectEffectServiceMethodDeclarationgetEffectByIdEffectService
getInstanceEffectServiceMethodDeclaration-
playEffectAtLocationEffectServiceMethodDeclarationplayAtPositionEffectService
playEffectOnGameObjectEffectServiceMethodDeclarationplayOnGameObjectEffectService
playEffectOnPlayerEffectServiceMethodDeclarationplayOnGameObjectEffectServiceEffectService.playOnGameObject("xxx", Player.localPlayer.character)
stopAllEffectEffectServiceMethodDeclarationstopAllEffectService
stopEffectEffectServiceMethodDeclarationstopEffectService

[删除]<类>Equipment 装备

  • 删除低频使用对象【Equipment】

[修改]<命名空间>Events 函数

  • 新增【Event】类,静态封装命名空间【Events】中与事件相关的方法。
  • dispatchLocal方法替换为dispatchToLocal,其余事件通信接口addClientListeneraddLocalListeneraddServerListenerdispatchToAllClientdispatchToClientdispatchToServer封装为类静态方法。
  • 删除应用状态监听方法:addOnResumeListeneraddOnPauseListeneraddExitListener。在【SystemUtil】类中新增onResume、onPause和onExit事件委托进行替换,回调方法统一采用委托对象绑定函数的形式。
  • 删除聚焦状态监听方法:addFocusListeneraddUnfocusedListener。在【WindowUtil】类中新增onFocus和onDefocus事件委托进行替换,回调方法统一采用委托对象绑定函数的形式。
  • 删除玩家进入/离开游戏监听方法:addPlayerJoinedListeneraddPlayerLeftListener。在【Player】类中新增onPlayerJoin和onPlayerLeave事件委托进行替换,回调方法统一采用委托对象绑定函数的形式。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
addClientListener-FunctionDeclarationaddClientListenerEvent替换
addExitListener-FunctionDeclarationonExitSystemUtil
addFocusListener-FunctionDeclarationonFocusWindowUtil
addLocalListener-FunctionDeclarationaddLocalListenerEvent
addOnPauseListener-FunctionDeclarationonPauseSystemUtil
addOnResumeListener-FunctionDeclarationonResumeSystemUtil
addPlayerJoinedListener-FunctionDeclarationonPlayerJoinPlayer
addPlayerLeftListener-FunctionDeclarationonPlayerLeavePlayer
addServerListener-FunctionDeclarationaddServerListenerEvent
addUnfocusedListener-FunctionDeclarationonDefocusWindowUtil
dispatchLocal-FunctionDeclarationdispatchToLocalEvent
dispatchToAllClient-FunctionDeclarationdispatchToAllClientEvent
dispatchToClient-FunctionDeclarationdispatchToClientEvent
dispatchToServer-FunctionDeclarationdispatchToServerEvent

[删除]<类>ExponentialHeightFog 环境雾

  • 删除【ExponentialHeightFog】环境雾,接口修改为静态调用形式迁移至新增对象【Fog】。因为环境雾并不支持叠加使用,场景中有且仅有一份生效,故027版本将其放置到世界对象以默认配置存在。
  • 删除继承自【GameObject】的接口,【Fog】不继承【GameObject】
  • 删除属性中的fog前缀:fogDensity-> densityfogEnable-> enabledfogHeight-> heightfogHeightFalloff-> heightFallofffogInscatteringColor-> inscatteringColorfogMaxOpacity-> maxOpacity
  • 删除设置雾气预设方法setPresetByIndex,替换为setPreset
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
fogDensityExponentialHeightFogGetAccessordensityFog
fogEnableExponentialHeightFogGetAccessorenabledFog
fogHeightExponentialHeightFogGetAccessorheightFog
fogHeightFalloffExponentialHeightFogGetAccessorheightFalloffFog
fogInscatteringColorExponentialHeightFogGetAccessorinscatteringColorFog
fogMaxOpacityExponentialHeightFogGetAccessormaxOpacityFog
fogDensityExponentialHeightFogSetAccessordensityFog
fogEnableExponentialHeightFogSetAccessorenabledFog
fogHeightExponentialHeightFogSetAccessorheightFog
fogHeightFalloffExponentialHeightFogSetAccessorheightFalloffFog
fogInscatteringColorExponentialHeightFogSetAccessorinscatteringColorFog
fogMaxOpacityExponentialHeightFogSetAccessormaxOpacityFog
setPresetByIndexExponentialHeightFogMethodDeclarationsetPresetFog

[修改]<类>Extension命名空间

  • Extension修改为mwext

img

img

  • saveProperty修改为persistence

img

img

[删除]<类>FourFootStandard 四足外观

  • 删除【SomatotypeBase】四足角色外观对象。统一使用【CharacterDescription】角色外观描述对象中的base对象进行四足角色的外观操作。
  • 删除设置/获取四足体型方法getSomatotypechangeSomatotype,后续四足外观只支持设置全身模型。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
changeSomatotypeFourFootStandardMethodDeclaration-
getSomatotypeFourFootStandardMethodDeclaration-
getWholeBodyFourFootStandardMethodDeclarationbase.wholeBodyCharacterDescriptioon
setWholeBodyFourFootStandardMethodDeclarationbase.wholeBodyCharacterDescriptioon

[修改]<类>GameObject 游戏对象

  • 统一使用世界变换worldTransform和本地变换localTransform承载原先对象内Transform相关的属性和方法。每个【GameObject】持有worldTransformlocalTransform。两个transform对象保存了【GameObject】的引用,所有针对worldTransformlocalTransform的修改都会反应到对象身上。
TypeScript
// a是一个GameObject对象
a: GameObject;

// worldTransform引用了对象a,对worldTransform的操作会反应在对象a上。
let transform = a.worldTransform;
transform.position = new Vector(100, 0, 0);

// position没有保存对象的引用,对position 的操作并不会影响对象a。
let position = a.worldTransform.position;
// a是一个GameObject对象
a: GameObject;

// worldTransform引用了对象a,对worldTransform的操作会反应在对象a上。
let transform = a.worldTransform;
transform.position = new Vector(100, 0, 0);

// position没有保存对象的引用,对position 的操作并不会影响对象a。
let position = a.worldTransform.position;
  • 删除无效属性:staticStatuslockStatus

  • 删除内部方法:attachComponentdetachComponent

  • 对象生成接口spawnasyncSpawn方法将assetId作为必填参数放在首位,即spawn时第一个参数必须传入对象的资源ID。而其他对象生成所需用到的属性,则统一通过GameObjectInfo对象作为可选参数进行设置。此外删除废弃方法:asyncSpawnGameObjectspawnGameObject

    img

    img

  • 新增isReady属性标明对象的准备状态。原先的ready方法改为asyncReady

  • 删除visible属性,统一使用getVisibility方法替换。

  • 删除内部私有接口:scriptNumberPropPathMapscriptPropPathNumberMap

  • 删除addDestroyCallbackdeleteDestroyCallback方法,使用onDestroyDelegate委托替换,回调方法统一采用委托对象绑定函数的形式。

  • 删除内部方法:attachComponentdetachComponent

  • 删除对象挂载/卸载方法:attachToGameObjectdetachFromGameObject,使用parent属性来控制对象的挂载和卸载,便于统一维护挂载和父子两对关系。

  • find方法改名为findGameObjectById,强调通过gameObjectId查找对象。

  • 查询方法返回的是对象数组(复数),findGameObjectByTag替换为findGameObjectsByTag

  • 空间大小统一使用extent命名,getBoundingBoxSize替换为getBoundingBoxExtent

  • 将“碰撞”属性从【GameObject】迁移,废弃原有碰撞相关方法getCollisionsetCollision,配合碰撞枚举中“跟随父节点”的去除,以简化世界中的碰撞机制。目前游戏对象中仅【Model】和【Character】保留碰撞接口。

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
forwardVectorGameObjectGetAccessorworldTransform.forwardVectorGameObject
lockStatusGameObjectGetAccessor-
relativeLocationGameObjectGetAccessorlocalTransform.positonGameObject
relativeRotationGameObjectGetAccessorlocalTransform.rotationGameObject
relativeScaleGameObjectGetAccessorlocalTransform.scaleGameObject
rightVectorGameObjectGetAccessorworldTransform.rightVectorGameObject
staticStatusGameObjectGetAccessor-
transformGameObjectGetAccessorworldTransformGameObject
upVectorGameObjectGetAccessorworldTransform.upVectorGameObject
useUpdateGameObjectGetAccessor-
visibleGameObjectGetAccessorgetVisibilityGameObject
worldLocationGameObjectGetAccessorworldTransform.positonGameObject
worldRotationGameObjectGetAccessorworldTransform.rotationGameObject
worldScaleGameObjectGetAccessorworldTransform.scaleGameObject
lockStatusGameObjectSetAccessor-删除
relativeLocationGameObjectSetAccessorlocalTransform.positionGameObject
relativeRotationGameObjectSetAccessorlocalTransform.rotationGameObject
relativeScaleGameObjectSetAccessorlocalTransform.scaleGameObject
transformGameObjectSetAccessorworldTransformGameObject
useUpdateGameObjectSetAccessor-
worldLocationGameObjectSetAccessorworldTransform.positionGameObject
worldRotationGameObjectSetAccessorworldTransform.rotationGameObject
worldScaleGameObjectSetAccessorworldTransform.scaleGameObject
scriptNumberPropPathMapGameObjectPropertyDeclaration-
scriptPropPathNumberMapGameObjectPropertyDeclaration-
addDestroyCallbackGameObjectMethodDeclarationonDestroyDelegateGameObject
asyncFindGameObjectMethodDeclarationasyncFindGameObjectByIdGameObject
asyncGetScriptByNameGameObjectMethodDeclarationgetScriptByNameGameObject
asyncSpawnGameObjectMethodDeclarationasyncSpawnGameObject
asyncSpawnGameObjectGameObjectMethodDeclarationasyncSpawnGameObject
attachComponentGameObjectMethodDeclaration-
attachToGameObjectGameObjectMethodDeclarationparentGameObject
deleteDestroyCallbackGameObjectMethodDeclarationonDestroyDelegate.removeGameObject
detachComponentGameObjectMethodDeclaration-
detachFromGameObjectGameObjectMethodDeclarationparentGameObject
findGameObjectMethodDeclarationfindGameObjectByIdGameObject
findGameObjectByTagGameObjectMethodDeclarationfindGameObjectsByTagGameObject
getBoundingBoxSizeGameObjectMethodDeclarationgetBoundingBoxExtentGameObject
getChildByGuidGameObjectMethodDeclarationgetChildByGameObjectIdGameObject
getChildrenBoxCenterGameObjectMethodDeclarationgetChildrenBoundingBoxCenterGameObject
getCollisionGameObjectMethodDeclaration-
getForwardVector
img
GameObjectMethodDeclarationworldTransform.getForwardVector
img
GameObject
getGameObjectByNameGameObjectMethodDeclarationfindGameObjectByNameGameObject
getGameObjectsByNameGameObjectMethodDeclarationfindGameObjectsByNameGameObject
getRelativeLocationGameObjectMethodDeclarationlocalTransform.positionGameObject
getRelativeRotationGameObjectMethodDeclarationlocalTransform.rotationGameObject
getRelativeScaleGameObjectMethodDeclarationlocalTransform.scaleGameObject
getRightVectorGameObjectMethodDeclarationworldTransform.getRightVectorGameObject
getScriptByGuidGameObjectMethodDeclarationgetScriptGameObject
getSourceAssetGuidGameObjectMethodDeclarationassetIdGameObject
getTransformGameObjectMethodDeclarationworldTransformGameObject
getUpVectorGameObjectMethodDeclarationworldTransform.getUpVectorGameObject
getVisibilityGameObjectMethodDeclarationgetVisibilityGameObject
getWorldLocation
img
GameObjectMethodDeclarationworldTransform.position
img
GameObject
getWorldRotationGameObjectMethodDeclarationworldTransform.rotationGameObject
getWorldScaleGameObjectMethodDeclarationworldTransform.scaleGameObject
readyGameObjectMethodDeclarationasyncReadyGameObject
setCollisionGameObjectMethodDeclaration-
setLocationAndRotation
a8ae1f5b-1dc9-4d55-b7c0-67862f03c64b
GameObjectMethodDeclaration- 拆分为2个接口
aef476b6-dac5-4f9b-9169-1a926951216e
setRelativeLocationGameObjectMethodDeclarationlocalTransform.positionGameObject
setRelativeRotationGameObjectMethodDeclarationlocalTransform.rotationGameObject
setRelativeScaleGameObjectMethodDeclarationlocalTransform.scaleGameObject
setTransformGameObjectMethodDeclarationworldTransformGameObject
setWorldLocationGameObjectMethodDeclarationworldTransform.positionGameObject
setWorldRotationGameObjectMethodDeclarationworldTransform.rotationGameObject
setWorldScaleGameObjectMethodDeclarationworldTransform.scaleGameObject
spawnGameObjectMethodDeclarationspawnGameObject
spawnGameObjectGameObjectMethodDeclarationspawnGameObject

[修改]<命名空间>Gameplay函数

接口名称(老)接口名称(新)属类(新)修改方案
addOutlineEffectsetOutlineModel / Pawn
angleCheckangleCheckMathUtil
asyncFindPathToLocationfindPathNavigation
asyncGetCurrentPlayerasyncGetLocalPlayerPlayer
asyncGetPlayerasyncGetPlayerPlayer
boxOverlapboxOverlapQueryUtil
boxOverlapInLevelboxTraceQueryUtil
clearFollowstopFollowNavigation
clearMoveTostopNavigateToNavigation
cylinderOverlapcapsuleOverlapQueryUtil
followfollowNavigation
getAllPlayersgetAllPlayersPlayer
getClickGameObjectByScenegetGameObjectByScreenPositionScreenUtil
getCurrentPlayerlocalPlayerPlayer
getGameObjectByScenePositiongetGameObjectByScreenPositionScreenUtil
getPlayergetPlayerPlayer
getShootDir-
getSightBeadLocationgetSightBeadPositionScreenUtil
isDynamicVibration-
lineTracelineTraceQueryUtil
moveTonavigateToNavigation
parabolicTrace-
playDynamicForceFeedbackStart-
playDynamicForceFeedbackStop-
removeOutlineEffectsetOutlineModel / Pawn
setGlobalAsyncTimeoutsetGlobalAsyncTimeoutScriptingSettings
setGlobalTimeDilationsetGlobalTimeDilationEnvironmentSettings
setPlayerPassableForAllArea-
setStaticMeshColor-
setStaticMeshMaterialColor-
spawnNewParticle-
spawnNewSound-
sphereOverlapsphereOverlapQueryUtil

[修改]<类>GameObjPool 游戏对象池

  • 删除getInstance,缩短调用链。
  • 删除获取对象池中对象方法find
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
findGameObjPoolMethodDeclaration-
getInstanceGameObjPoolMethodDeclaration-

[删除]<类>Group 缓动组

  • 删除【Group】对象,替换为【TweenGroup】。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
addGroupMethodDeclarationaddTweenGroup
getAllGroupMethodDeclarationgetAllTweenGroup
removeGroupMethodDeclarationremoveTweenGroup
removeAllGroupMethodDeclarationremoveAllTweenGroup
updateGroupMethodDeclarationupdateTweenGroup

[修改]<类>HitResult 击中结果

  • 删除对象击中位置属性location,替换为position。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
locationHitResultPropertyDeclarationpositionHitResult

[修改]<类>HotWeapon 热武器

  • 合并委托接口,接口名称不再区分C/S端,根据调用端自动绑定。删除老委托接口,替换为新接口。
onEquippedClient` & `onEquippedServer` -> `onEquip
onUnequippedClient` & `onUnequippedServer` -> `onUnequip
onEquippedClient` & `onEquippedServer` -> `onEquip
onUnequippedClient` & `onUnequippedServer` -> `onUnequip
  • 删除原先Enable属性,替换为Enabled。
  • 删除失效方法getTransformForFire
  • 删除设置发射模式方法setCurrentFireModel,替换为发射组件fireComponentfireMode属性。
  • 删除装备/卸载武器方法:equipmentunequipHotWeapon,替换为equipunequip
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
accuracyOfFireEnableHotWeaponGetAccessoraccuracyOfFireEnabledHotWeapon
aimEnableHotWeaponGetAccessoraimEnabledHotWeapon
loadEnableHotWeaponGetAccessorloadEnabledHotWeapon
recoilForceEnableHotWeaponGetAccessorrecoilForceEnabledHotWeapon
reloadEnableHotWeaponGetAccessorreloadEnabledHotWeapon
accuracyOfFireEnableHotWeaponSetAccessoraccuracyOfFireEnabledHotWeapon
aimEnableHotWeaponSetAccessoraimEnabledHotWeapon
loadEnableHotWeaponSetAccessorloadEnabledHotWeapon
recoilForceEnableHotWeaponSetAccessorrecoilForceEnabledHotWeapon
reloadEnableHotWeaponSetAccessorreloadEnabledHotWeapon
onEquippedClientHotWeaponPropertyDeclarationonEquipHotWeapon
onEquippedServerHotWeaponPropertyDeclarationonEquipHotWeapon
onUnequippedClientHotWeaponPropertyDeclarationonUnequipHotWeapon
onUnequippedServerHotWeaponPropertyDeclarationonUnequipHotWeapon
equipmentHotWeaponMethodDeclarationequipHotWeapon
getTransformForFireHotWeaponMethodDeclaration-
setCurrentFireModelHotWeaponMethodDeclarationfireComponent.fireModeHotWeaponFireComponent
unequipHotWeaponHotWeaponMethodDeclarationunequipHotWeapon

[修改]<类>HotWeaponAccuracyOfFireComponent 热武器瞄准组件

  • 删除无效方法bindOpenAccuracyOfFireComponentDelegates,后续使用委托无需绑定。
  • 删除散射值变化委托onCurrentDispersionChangedClient,替换为onCurrentDispersionChange
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
bindOpenAccuracyOfFireComponentDelegatesHotWeaponAccuracyOfFireComponentMethodDeclaration-
onCurrentDispersionChangedClientHotWeaponAccuracyOfFireComponentPropertyDeclarationonCurrentDispersionChangeHotWeaponAccuracyOfFireComponent

[修改]<类>HotWeaponAimComponent 热武器瞄准组件

  • 删除失效属性瞄准镜UI种类scopeTypeIndex
  • 合并委托接口,接口名称不再区分C/S端,根据调用端自动绑定。删除老委托接口,替换为新接口。
onAimStartClient` & `onAimStartServer` -> `onStartAim
onAimEndClient` & `onAimEndServer` -> `onEndAim
onAimStartClient` & `onAimStartServer` -> `onStartAim
onAimEndClient` & `onAimEndServer` -> `onEndAim
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
scopeTypeIndexHotWeaponAimComponentGetAccessor-
scopeTypeIndexHotWeaponAimComponentSetAccessor-
onAimEndClientHotWeaponAimComponentPropertyDeclarationonEndAimHotWeaponAimComponent
onAimEndServerHotWeaponAimComponentPropertyDeclarationonEndAimHotWeaponAimComponent
onAimStartClientHotWeaponAimComponentPropertyDeclarationonStartAimHotWeaponAimComponent
onAimStartServerHotWeaponAimComponentPropertyDeclarationonStartAimHotWeaponAimComponent

[修改]<类>HotWeaponFireComponent 热武器发射组件

  • Guid后续统一区分为对象ID:gameobjectId;资源ID:assetId;删除animationGuid,替换为animationAssetId
  • 删除原属性current前缀,替换为新属性:currentBulletSize -> currentBulletcurrentClipSize -> clipSizecurrentFireInterval -> fireIntervalcurrentFireModel -> fireModecurrentMultipleShot -> multipleShot
  • 删除判断全自动模式接口isFullAutoMode,替换为发射模式属性fireMode完成判断。
  • 删除组件内动画ID判断方法hadAnimationGuid
  • 合并委托接口,接口名称不再区分C/S端,根据调用端自动绑定。删除老委托接口,替换为新接口。
onEndContinuousFireServer` -> `onEndContinuousFire
onEndFireClient` & `onEndFireServer` -> `onEndFire
onStartFireClient` & `onStartFireServer `-> `onStartFire
onEndContinuousFireServer` -> `onEndContinuousFire
onEndFireClient` & `onEndFireServer` -> `onEndFire
onStartFireClient` & `onStartFireServer `-> `onStartFire
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
animationGuidHotWeaponFireComponentGetAccessoranimationAssetIdHotWeaponFireComponent
currentBulletSizeHotWeaponFireComponentGetAccessorcurrentBulletHotWeaponFireComponent
currentClipSizeHotWeaponFireComponentGetAccessorclipSizeHotWeaponFireComponent
currentFireIntervalHotWeaponFireComponentGetAccessorfireIntervalHotWeaponFireComponent
currentFireModelHotWeaponFireComponentGetAccessorfireModeHotWeaponFireComponent
currentMultipleShotHotWeaponFireComponentGetAccessormultipleShotHotWeaponFireComponent
isFullAutoModeHotWeaponFireComponentGetAccessorfireModeHotWeaponFireComponent
animationGuidHotWeaponFireComponentSetAccessoranimationAssetIdHotWeaponFireComponent
currentBulletSizeHotWeaponFireComponentSetAccessorcurrentBulletHotWeaponFireComponent
currentClipSizeHotWeaponFireComponentSetAccessorclipSizeHotWeaponFireComponent
currentFireIntervalHotWeaponFireComponentSetAccessorfireIntervalHotWeaponFireComponent
currentMultipleShotHotWeaponFireComponentSetAccessormultipleShotHotWeaponFireComponent
isFullAutoModeHotWeaponFireComponentSetAccessorfireModeHotWeaponFireComponent
onEndContinuousFireServerHotWeaponFireComponentPropertyDeclarationonEndContinuousFireHotWeaponFireComponent
onEndFireClientHotWeaponFireComponentPropertyDeclarationonEndFireHotWeaponFireComponent
onEndFireServerHotWeaponFireComponentPropertyDeclarationonEndFireHotWeaponFireComponent
onStartFireClientHotWeaponFireComponentPropertyDeclarationonStartFireHotWeaponFireComponent
onStartFireServerHotWeaponFireComponentPropertyDeclarationonStartFireHotWeaponFireComponent
hadAnimationGuidHotWeaponFireComponentMethodDeclaration-

[修改]<类>HotWeaponLoadComponent 热武器上膛组件

  • Guid后续统一区分为对象ID:gameobjectId;资源ID:assetId;删除animationGuid,替换为animationAssetId
  • 删除发射后上膛属性loadAfterFireEnable,替换为loadAfterFireEnabled
  • 删除组件内动画ID判断方法hadAnimationGuid
  • 合并委托接口,接口名称不再区分C/S端,根据调用端自动绑定。删除老委托接口,替换为新接口。
onEndLoadClient` & `onEndLoadServer` -> `onEndLoad
onStartLoadClient` & `onStartLoadServer` -> `onStartLoad
onEndLoadClient` & `onEndLoadServer` -> `onEndLoad
onStartLoadClient` & `onStartLoadServer` -> `onStartLoad
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
animationGuidHotWeaponLoadComponentGetAccessoranimationAssetIdHotWeaponLoadComponent
loadAfterFireEnableHotWeaponLoadComponentGetAccessorloadAfterFireEnabledHotWeaponLoadComponent
animationGuidHotWeaponLoadComponentSetAccessoranimationAssetIdHotWeaponLoadComponent
loadAfterFireEnableHotWeaponLoadComponentSetAccessorloadAfterFireEnabledHotWeaponLoadComponent
onEndLoadClientHotWeaponLoadComponentPropertyDeclarationonEndLoadHotWeaponLoadComponent
onEndLoadServerHotWeaponLoadComponentPropertyDeclarationonEndLoadHotWeaponLoadComponent
onStartLoadClientHotWeaponLoadComponentPropertyDeclarationonStartLoadHotWeaponLoadComponent
onStartLoadServerHotWeaponLoadComponentPropertyDeclarationonStartLoadHotWeaponLoadComponent
hadAnimationGuidHotWeaponLoadComponentMethodDeclaration-

[修改]<类>HotWeaponRecoilForceComponent 热武器后坐力组件

  • 合并委托接口,接口名称不再区分C/S端,根据调用端自动绑定。删除老委托接口,替换为新接口。
onStartRecoilForceClient` & `onStartRecoilForceServer` -> `onStartRecoil
onStartRecoilForceClient` & `onStartRecoilForceServer` -> `onStartRecoil
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
onStartRecoilForceClientHotWeaponRecoilForceComponentPropertyDeclarationonStartRecoilHotWeaponRecoilForceComponent
onStartRecoilForceServerHotWeaponRecoilForceComponentPropertyDeclarationonStartRecoilHotWeaponRecoilForceComponent

[修改]<类>HotWeaponReloadComponent 热武器换弹组件

  • Guid后续统一区分为对象ID:gameobjectId;资源ID:assetId;删除animationGuid,替换为animationAssetId
  • 删除组件内动画ID判断方法hadAnimationGuid
  • 合并委托接口,接口名称不再区分C/S端,根据调用端自动绑定。删除老委托接口,替换为新接口。
onEndReloadClient` & `onEndReloadServer` -> `onEndReload
onStartReloadClient` & `onStartReloadServer` -> `onStartReload
onEndReloadClient` & `onEndReloadServer` -> `onEndReload
onStartReloadClient` & `onStartReloadServer` -> `onStartReload
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
animationGuidHotWeaponReloadComponentGetAccessoranimationAssetIdHotWeaponReloadComponent
animationGuidHotWeaponReloadComponentSetAccessoranimationAssetIdHotWeaponReloadComponent
onEndReloadClientHotWeaponReloadComponentPropertyDeclarationonEndReloadHotWeaponReloadComponent
onEndReloadServerHotWeaponReloadComponentPropertyDeclarationonEndReloadHotWeaponReloadComponent
onStartReloadClientHotWeaponReloadComponentPropertyDeclarationonStartReloadHotWeaponReloadComponent
onStartReloadServerHotWeaponReloadComponentPropertyDeclarationonStartReloadHotWeaponReloadComponent
hadAnimationGuidHotWeaponReloadComponentMethodDeclaration-

[删除]<类>Humanoid 非玩家角色

  • 删除【Humanoid】类,统一使用【Character】类代表角色对象,消除角色对象之间的区别。
  • 删除serverCalculateEnable方法和serverMovementEnable属性,替换为【Character】类中新增属性complexMovementEnabledcomplexMovementEnabled默认为true,开启移动组件计算。complexMovementEnabled为false,关闭移动组件计算。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
serverCalculateEnableHumanoidSetAccessorcomplexMovementEnabledCharacter
serverMovementEnableHumanoidSetAccessorcomplexMovementEnabledCharacter

[删除]<类>HumanoidV1 V1外观

  • 删除【HumanoidV1】等相关的V1角色外观对象。统一使用【CharacterDescription】角色外观描述对象中的base对象进行V1角色的外观操作。
  • 删除设置姿态方法changeSomatotypegetSomatotype,后续V1外观只支持设置全身模型。
  • 删除V1外观的组成facehairtrunk,后续V1外观只支持设置全身模型。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
faceHumanoidV1PropertyDeclaration-
hairHumanoidV1PropertyDeclaration-
trunkHumanoidV1PropertyDeclaration-
changeSomatotypeHumanoidV1MethodDeclaration-
getSomatotypeHumanoidV1MethodDeclaration-
getWholeBodyHumanoidV1MethodDeclarationbase.wholeBodyCharacterDescription
setWholeBodyHumanoidV1MethodDeclarationbase.wholeBodyCharacterDescription

[删除]<类>HumanoidV1Part V1外观基类

  • 删除V1外观的所有类【HumanoidV1Part】【 HumanoidV1Hair】【HumanoidV1Trunk】【HumanoidV1Face】,后续V1外观只支持设置全身模型。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
设置头发模型setMesh()MethodDeclaration-
获取头发模型getMesh()MethodDeclaration-

[删除]<类>HumanoidV1Hair V1头发

同HumanoidV1Part V1外观基类

[删除]<类>HumanoidV1Trunk V1躯干

同HumanoidV1Part V1外观基类

[删除]<类>HumanoidV1Face V1脸

同HumanoidV1Part V1外观基类

[删除]<类>HumanoidV2 V2外观

  • 删除【HumanoidV2】等相关的V2角色外观对象。统一使用【CharacterDescription】角色外观描述对象中的advance对象进行V2角色的外观操作。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
behindHairHumanoidV2PropertyDeclarationadvance.hair.backHairCharacterDescription
frontHairHumanoidV2PropertyDeclarationadvance.hair.frontHairCharacterDescription
glovesHumanoidV2PropertyDeclarationadvance.clothing.glovesCharacterDescription
headHumanoidV2PropertyDeclarationadvance.headFeaturesCharacterDescription
lowerClothHumanoidV2PropertyDeclarationadvance.clothing.lowerClothCharacterDescription
shapeHumanoidV2PropertyDeclarationadvance.bodyFeaturesCharacterDescription
shoeHumanoidV2PropertyDeclarationadvance.clothing.shoesCharacterDescription
upperClothHumanoidV2PropertyDeclarationadvance.clothing.upperClothCharacterDescription
appearanceSyncHumanoidV2MethodDeclarationsyncDescriptionCharacter
attachHumanoidV2MethodDeclarationattachToSlotCharacter
changeSomatotypeHumanoidV2MethodDeclarationadvance.base.characterSetting.somatotypeCharacterDescription
clearAppearanceHumanoidV2MethodDeclarationclearDescriptionCharacter
detachHumanoidV2MethodDeclarationDetachFromSlotCharacter
getBodyTattooColorHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalColorCharacterDescription
getBodyTattooPositionXHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalHorizontalShiftCharacterDescription
getBodyTattooPositionYHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalVerticalShiftCharacterDescription
getBodyTattooRotationHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalOverallRotationCharacterDescription
getBodyTattooTypeHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalStyleCharacterDescription
getBodyTattooZoomHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalOverallScaleCharacterDescription
getGoodsHumanoidV2MethodDeclaration-
getSkinColorHumanoidV2MethodDeclarationadvance.makeup.skinTone.skinColorCharacterDescription
getSkinTextureHumanoidV2MethodDeclaration-
getSlotWorldPositionHumanoidV2MethodDeclarationgetSlotWorldPositionCharacter
getSomatotypeHumanoidV2MethodDeclarationadvance.base.characterSetting.somatotypeCharacterDescription
getVertexPositionHumanoidV2MethodDeclarationgetVertexPositionCharacter
setAppearanceDataHumanoidV2MethodDeclarationsetDescriptionCharacter
setBodyTattooColorHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalColorCharacterDescription
setBodyTattooPositionXHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalHorizontalShiftCharacterDescription
setBodyTattooPositionYHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalVerticalShiftCharacterDescription
setBodyTattooRotationHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalOverallRotationCharacterDescription
setBodyTattooTypeHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalStyleCharacterDescription
setBodyTattooZoomHumanoidV2MethodDeclarationadvance.makeup.bodyDecal[index].decalOverallScaleCharacterDescription
setSkinColorHumanoidV2MethodDeclarationadvance.makeup.skinTone.skinColorCharacterDescription
setSkinTextureHumanoidV2MethodDeclaration-
setSlotHumanoidV2MethodDeclarationattachToSlotCharacter
setSomatotypeHumanoidV2MethodDeclarationadvance.base.characterSetting.somatotypeCharacterDescription
setSuitHumanoidV2MethodDeclaration-

[删除]<类>HumanoidV2HairPart V2头发基类

  • 删除继承自【HumanoidV2HairPart】的相关的V2角色发型外观对象。统一使用【CharacterDescription】角色外观描述对象中的frontHairbackHair对象操作V2角色的发型。下表以frontHair为例:

【HumanoidV2FrontHairPart】 -> advance.hair.frontHair

【HumanoidV2BehindHairPart 】 -> advance.hair.backHair

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getAreaCountHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories.lengthCharacterDescription
getColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.color.colorCharacterDescription
getGradientColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.color.gradientColorCharacterDescription
getGradientIntensityHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.color.gradientAreaCharacterDescription
getHeaddressColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].color.accessoryColorCharacterDescription
getHeaddressDesignColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designColorCharacterDescription
getHeaddressDesignRotationHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designRotationCharacterDescription
getHeaddressDesignTextureHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designStyleCharacterDescription
getHeaddressDesignZoomHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designScaleCharacterDescription
getHeaddressPatternAngleHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternRotationCharacterDescription
getHeaddressPatternColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternColorCharacterDescription
getHeaddressPatternHeightHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternVerticalScaleCharacterDescription
getHeaddressPatternIntensityHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternVisibilityCharacterDescription
getHeaddressPatternTextureHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternStyleCharacterDescription
getHeaddressPatternWidthHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternHorizontalScaleCharacterDescription
getHighlightColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.highlight.highlightStyleCharacterDescription
getHighlightMaskHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.highlight.highlightStyleCharacterDescription
getMeshHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.styleCharacterDescription
setColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.color.colorCharacterDescription
setGradientColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.color.gradientColorCharacterDescription
setGradientIntensityHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.color.gradientAreaCharacterDescription
setHeaddressColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].color.accessoryColorCharacterDescription
setHeaddressDesignColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designColorCharacterDescription
setHeaddressDesignRotationHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designRotationCharacterDescription
setHeaddressDesignTextureHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designStyleCharacterDescription
setHeaddressDesignZoomHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].design.designScaleCharacterDescription
setHeaddressPatternAngleHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternRotationCharacterDescription
setHeaddressPatternColorHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternColorCharacterDescription
setHeaddressPatternHeightHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternVerticalScaleCharacterDescription
setHeaddressPatternIntensityHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternVisibilityCharacterDescription
setHeaddressPatternTextureHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternStyleCharacterDescription
setHeaddressPatternWidthHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.accessories[index].pattern.patternHorizontalScaleCharacterDescription
setHighlightColorHumanoidV2HairPartMethodDeclaration-CharacterDescription
setHighlightMaskHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.highlight.highlightStyleCharacterDescription
setMeshHumanoidV2HairPartMethodDeclarationadvance.hair.frontHair.styleCharacterDescription

[删除]<类>HumanoidV2FrontHairPart V2前发

  • 见HumanoidV2HairPart

[删除]<类>HumanoidV2BehindHairPart V2后发

  • 见HumanoidV2HairPart

[删除]<类>HumanoidV2ClothPart V2服装基类

  • 删除继承自【HumanoidV2ClothPart】的相关的V2角色服饰对象。统一使用【CharacterDescription】角色外观描述对象中的upperClothlowerClothglovesshoes对象操作V2角色的服饰。下表以upperCloth为例:

【HumanoidV2UpperClothPart】 -> advance.clothing.upperCloth

【HumanoidV2LowerClothPart】 -> advance.clothing.lowerCloth

【HumanoidV2GlovesPart】 -> advance.clothing.gloves

【HumanoidV2ShoePart】 -> advance.clothing.shoes

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getAreaCountHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part.lengthCharacterDescription
getColorHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].color.areaColorCharacterDescription
getDesignAngleHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].design.designRotationCharacterDescription
getDesignColorHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].design.designColorCharacterDescription
getDesignTextureHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].design.designStyleCharacterDescription
getMeshHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.styleCharacterDescription
getPatternAngleHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternRotationCharacterDescription
getPatternColorHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternColorCharacterDescription
getPatternHeightHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternVerticalScaleCharacterDescription
getPatternIntensityHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternVisibilityCharacterDescription
getPatternWidthHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternHorizontalScaleCharacterDescription
getTextureHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternStyleCharacterDescription
setColorHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].color.areaColorCharacterDescription
setDesignAngleHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].design.designRotationCharacterDescription
setDesignColorHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].design.designColorCharacterDescription
setDesignTextureHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].design.designStyleCharacterDescription
setMeshHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.styleCharacterDescription
setPatternAngleHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternRotationCharacterDescription
setPatternColorHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternColorCharacterDescription
setPatternHeightHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternVerticalScaleCharacterDescription
setPatternIntensityHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternVisibilityCharacterDescription
setPatternWidthHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternHorizontalScaleCharacterDescription
setTextureHumanoidV2ClothPartMethodDeclarationadvance.clothing.upperCloth.part[index].pattern.patternStyleCharacterDescription

[删除]<类>HumanoidV2UpperClothPart V2上装

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2LowerClothPart V2 下装

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2GlovesPart V2手套

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2ShoePart V2鞋子

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2HeadPart V2头部

  • 删除继承自【HumanoidV2HeadPart】的相关的V2角色头部外观对象。统一使用【CharacterDescription】角色外观描述对象中的妆容makeup和头部特征headFeatures对象操作V2角色的头部特征。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
characterFaceShadowHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getBlushColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushColorCharacterDescription
getBlushTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushStyleCharacterDescription
getBrowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowColorCharacterDescription
getBrowTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowStyleCharacterDescription
getExpressionHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.expressions.changeExpressionCharacterDescription
getEyeHighlightColorHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getEyeHighlightTextureHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getEyeShadowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshaowColorCharacterDescription
getEyeShadowTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshadowStyleCharacterDescription
getEyeTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.pupilStyleCharacterDescription
getEyelashColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashColorCharacterDescription
getEyelashTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashStyleCharacterDescription
getFacialTattooColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalColorCharacterDescription
getFacialTattooPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalVerticalShiftCharacterDescription
getFacialTattooPositionYHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallRotationCharacterDescription
getFacialTattooRotationHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalStyleCharacterDescription
getFacialTattooTypeHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallScaleCharacterDescription
getFacialTattooZoomHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalColorCharacterDescription
getHeadPatternColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalStyleCharacterDescription
getHeadPatternTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.leftPupilColorCharacterDescription
getLeftEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickColorCharacterDescription
getLipstickColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickStyleCharacterDescription
getLipstickTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightColorCharacterDescription
getLowerEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightStyleCharacterDescription
getLowerEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.head.styleCharacterDescription
getMeshHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilColorCharacterDescription
getPupilColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilHorizontalPositionCharacterDescription
getPupilPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilVerticalPositionCharacterDescription
getPupilPositionYHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getPupilRotateHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilSizeScaleCharacterDescription
getPupilScaleHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilStyleCharacterDescription
getPupilTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.rightPupilColorCharacterDescription
getRightEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightColorCharacterDescription
getUpperEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightStyleCharacterDescription
getUpperEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushColorCharacterDescription
setBlushColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushStyleCharacterDescription
setBlushTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowColorCharacterDescription
setBrowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowStyleCharacterDescription
setBrowTextureHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.expressions.changeExpressionCharacterDescription
setEyeHighlightColorHumanoidV2HeadPartMethodDeclaration-CharacterDescription
setEyeHighlightTextureHumanoidV2HeadPartMethodDeclaration-CharacterDescription
setEyeShadowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshaowColorCharacterDescription
setEyeShadowTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshadowStyleCharacterDescription
setEyeTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.pupilStyleCharacterDescription
setEyelashColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashColorCharacterDescription
setEyelashTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashStyleCharacterDescription
setFacialTattooColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalColorCharacterDescription
setFacialTattooPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalHorizontalShiftCharacterDescription
setFacialTattooPositionYHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalVerticalShiftCharacterDescription
setFacialTattooRotationHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallRotationCharacterDescription
setFacialTattooTypeHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalStyleCharacterDescription
setFacialTattooZoomHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallScaleCharacterDescription
setHeadPatternColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalColorCharacterDescription
setHeadPatternTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalStyleCharacterDescription
setLeftEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.leftPupilColorCharacterDescription
setLipstickColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickColorCharacterDescription
setLipstickTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickStyleCharacterDescription
setLowerEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightColorCharacterDescription
setLowerEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightStyleCharacterDescription
setMeshHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.head.styleCharacterDescription
setPupilColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilColorCharacterDescription
setPupilPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilHorizontalPositionCharacterDescription
setPupilPositionYHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilVerticalPositionCharacterDescription
setPupilRotateHumanoidV2HeadPartMethodDeclaration-CharacterDescription
setPupilScaleHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilSizeScaleCharacterDescription
setPupilTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilStyleCharacterDescription
setRightEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.rightPupilColorCharacterDescription
setUpperEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightColorCharacterDescription
setUpperEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightStyleCharacterDescription

[删除]<类>HumanoidV2UpperClothPart V2上装

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2LowerClothPart V2 下装

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2GlovesPart V2手套

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2ShoePart V2鞋子

  • 见HumanoidV2ClothPart

[删除]<类>HumanoidV2HeadPart V2头部

  • 删除继承自【HumanoidV2HeadPart】的相关的V2角色头部外观对象。统一使用【CharacterDescription】角色外观描述对象中的妆容makeup和头部特征headFeatures对象操作V2角色的头部特征。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
characterFaceShadowHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getBlushColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushColorCharacterDescription
getBlushTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushStyleCharacterDescription
getBrowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowColorCharacterDescription
getBrowTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowStyleCharacterDescription
getExpressionHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.expressions.changeExpressionCharacterDescription
getEyeHighlightColorHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getEyeHighlightTextureHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getEyeShadowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshaowColorCharacterDescription
getEyeShadowTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshadowStyleCharacterDescription
getEyeTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.pupilStyleCharacterDescription
getEyelashColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashColorCharacterDescription
getEyelashTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashStyleCharacterDescription
getFacialTattooColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalColorCharacterDescription
getFacialTattooPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalVerticalShiftCharacterDescription
getFacialTattooPositionYHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallRotationCharacterDescription
getFacialTattooRotationHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalStyleCharacterDescription
getFacialTattooTypeHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallScaleCharacterDescription
getFacialTattooZoomHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalColorCharacterDescription
getHeadPatternColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalStyleCharacterDescription
getHeadPatternTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.leftPupilColorCharacterDescription
getLeftEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickColorCharacterDescription
getLipstickColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickStyleCharacterDescription
getLipstickTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightColorCharacterDescription
getLowerEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightStyleCharacterDescription
getLowerEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.head.styleCharacterDescription
getMeshHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilColorCharacterDescription
getPupilColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilHorizontalPositionCharacterDescription
getPupilPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilVerticalPositionCharacterDescription
getPupilPositionYHumanoidV2HeadPartMethodDeclaration-CharacterDescription
getPupilRotateHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilSizeScaleCharacterDescription
getPupilScaleHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilStyleCharacterDescription
getPupilTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.rightPupilColorCharacterDescription
getRightEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightColorCharacterDescription
getUpperEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightStyleCharacterDescription
getUpperEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushColorCharacterDescription
setBlushColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.blush.blushStyleCharacterDescription
setBlushTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowColorCharacterDescription
setBrowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyebrows.eyebrowStyleCharacterDescription
setBrowTextureHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.expressions.changeExpressionCharacterDescription
setEyeHighlightColorHumanoidV2HeadPartMethodDeclaration-CharacterDescription
setEyeHighlightTextureHumanoidV2HeadPartMethodDeclaration-CharacterDescription
setEyeShadowColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshaowColorCharacterDescription
setEyeShadowTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyeShadow.eyeshadowStyleCharacterDescription
setEyeTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.pupilStyleCharacterDescription
setEyelashColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashColorCharacterDescription
setEyelashTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.eyelashes.eyelashStyleCharacterDescription
setFacialTattooColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalColorCharacterDescription
setFacialTattooPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalHorizontalShiftCharacterDescription
setFacialTattooPositionYHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalVerticalShiftCharacterDescription
setFacialTattooRotationHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallRotationCharacterDescription
setFacialTattooTypeHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalStyleCharacterDescription
setFacialTattooZoomHumanoidV2HeadPartMethodDeclarationadvance.makeup.faceDecal[index].decalOverallScaleCharacterDescription
setHeadPatternColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalColorCharacterDescription
setHeadPatternTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.headDecal.decalStyleCharacterDescription
setLeftEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.leftPupilColorCharacterDescription
setLipstickColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickColorCharacterDescription
setLipstickTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.lipstick.lipstickStyleCharacterDescription
setLowerEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightColorCharacterDescription
setLowerEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.lowerHighlightStyleCharacterDescription
setMeshHumanoidV2HeadPartMethodDeclarationadvance.headFeatures.head.styleCharacterDescription
setPupilColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilColorCharacterDescription
setPupilPositionXHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilHorizontalPositionCharacterDescription
setPupilPositionYHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilVerticalPositionCharacterDescription
setPupilRotateHumanoidV2HeadPartMethodDeclaration-CharacterDescription
setPupilScaleHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilSizeScaleCharacterDescription
setPupilTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.decal.pupilStyleCharacterDescription
setRightEyeColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.style.rightPupilColorCharacterDescription
setUpperEyeHighlightColorHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightColorCharacterDescription
setUpperEyeHighlightTextureHumanoidV2HeadPartMethodDeclarationadvance.makeup.coloredContacts.highlight.upperHighlightStyleCharacterDescription

[删除]<类>HumanoidV2Shape V2 体型

  • 删除继承自【HumanoidV2Shape】的相关的V2角色身体外观对象。统一使用【CharacterDescription】角色外观描述对象中的bodyFeatures对象操作V2角色的身体特征。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getBreastHorizontalPositionHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastHorizontalShiftCharacterDescription
getBreastLengthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastLengthCharacterDescription
getBreastScaleHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastOverallScaleCharacterDescription
getBreastStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.chest.chestVerticalScaleCharacterDescription
getBreastVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastVerticalShiftCharacterDescription
getBrowGapHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowHorizontalShiftCharacterDescription
getBrowHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowVerticalShiftCharacterDescription
getBrowInboardShapeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowInnerVerticalShiftCharacterDescription
getBrowOutsideShapeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowOuterVerticalShiftCharacterDescription
getBrowRotationHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowOverallRotationCharacterDescription
getCanthusHorizontalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.eyeCorners.innerEyeCornerHorizontalShiftCharacterDescription
getCanthusVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.eyeCorners.outerEyeCornerVerticalShiftCharacterDescription
getCharacterHeightHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.body.heightCharacterDescription
getCheekBoneRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheekbone.cheekboneFrontalShiftCharacterDescription
getCheekBoneWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheekbone.cheekboneHorizontalScaleCharacterDescription
getCheekHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheek.cheekVerticalShiftCharacterDescription
getCheekRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheek.cheekFrontalShiftCharacterDescription
getCheekWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheek.cheekHorizontalScaleCharacterDescription
getEarRollHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earHorizontalRotationCharacterDescription
getEarScaleHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earOverallScaleCharacterDescription
getEarYawHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earFrontalRotationCharacterDescription
getEyesGapHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeHorizontalShiftCharacterDescription
getEyesHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeVerticalShiftCharacterDescription
getEyesLengthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeVerticalScaleCharacterDescription
getEyesRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeFrontalShiftCharacterDescription
getEyesRotationHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeOverallRotationCharacterDescription
getEyesWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeHorizontalScaleCharacterDescription
getFaceWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.faceHorizontalScaleCharacterDescription
getFootScaleHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.feet.feetOverallScaleCharacterDescription
getGroinThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.hips.hipFrontalScaleCharacterDescription
getGroinWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.hips.hipHorizontalScaleCharacterDescription
getHandScaleHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.hands.handOverallScaleCharacterDescription
getHeadScaleHumanoidV2ShapeMethodDeclarationadvance.headFeatures.head.headOverallScaleCharacterDescription
getJawLengthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawlineVerticalShiftCharacterDescription
getJawRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinTipFrontalShiftCharacterDescription
getJawSmoothHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawlineRoundnessCharacterDescription
getJawVertexHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinTipVerticalShiftCharacterDescription
getJawVertexRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinFrontalShiftCharacterDescription
getJawVertexWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinTipHorizontalScaleCharacterDescription
getLowerArmsStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.forearmVerticalScaleCharacterDescription
getLowerArmsThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.forearmFrontalScaleCharacterDescription
getLowerArmsWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.forearmHorizontalScaleCharacterDescription
getLowerFaceRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.lowerFaceFrontalShiftCharacterDescription
getLowerFaceWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.lowerFaceHorizontalScaleCharacterDescription
getLowerJawRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawFrontalShiftCharacterDescription
getLowerJawWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawHorizontalScaleCharacterDescription
getLowerMouthThicknessHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.lips.lowerLipThicknessCharacterDescription
getLowerStretchHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earLowerScaleCharacterDescription
getMouthHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.overall.mouthVerticalShiftCharacterDescription
getMouthRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.overall.mouthFrontalShiftCharacterDescription
getMouthShapeHumanoidV2ShapeMethodDeclaration-CharacterDescription
getMouthWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.overall.mouthHorizontalScaleCharacterDescription
getNeckStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.neck.neckVerticalScaleCharacterDescription
getNeckThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.neck.neckFrontalScaleCharacterDescription
getNeckWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.neck.neckHorizontalScaleCharacterDescription
getNoseHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.nose.noseBridge.noseBridgeFrontalShiftCharacterDescription
getNoseProtrusionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.nose.noseTip.noseTipVerticalShiftCharacterDescription
getNoseVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.nose.overall.noseOverallVerticalShiftCharacterDescription
getPupilHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilVerticalScaleCharacterDescription
getPupilHorizontalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilHorizontalShiftCharacterDescription
getPupilVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilVerticalShiftCharacterDescription
getPupilWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilHorizontalScaleCharacterDescription
getRibThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.ribs.ribFrontalScaleCharacterDescription
getRibWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.ribs.ribHorizontalScaleCharacterDescription
getShankScaleXHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.calfHorizontalScaleCharacterDescription
getShankScaleZHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.calfFrontalScaleCharacterDescription
getShankStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.calfVerticalScaleCharacterDescription
getShoulderArmThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.shoulderFrontalScaleCharacterDescription
getShoulderArmWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.shoulderHorizontalScaleCharacterDescription
getShoulderThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.chest.chestFrontalScaleCharacterDescription
getShoulderWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.chest.chestHorizontalScaleCharacterDescription
getThighStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.thighVerticalScaleCharacterDescription
getThighThicknessXHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.thighHorizontalScaleCharacterDescription
getThighThicknessZHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.thighFrontalScaleCharacterDescription
getUpperArmsStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.upperArmVerticalScaleCharacterDescription
getUpperArmsThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.upperArmFrontalScaleCharacterDescription
getUpperArmsWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.upperArmHorizontalScaleCharacterDescription
getUpperFaceRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.upperFaceFrontalShiftCharacterDescription
getUpperMouthThicknessHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.lips.upperLipThicknessCharacterDescription
getUpperStretchHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earUpperScaleCharacterDescription
getWaistStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.waist.waistVerticalScaleCharacterDescription
getWaistThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.waist.waistFrontalScaleCharacterDescription
getWaistWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.waist.waistHorizontalScaleCharacterDescription
setBreastHorizontalPositionHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastHorizontalShiftCharacterDescription
setBreastLengthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastLengthCharacterDescription
setBreastScaleHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastOverallScaleCharacterDescription
setBreastStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.chest.chestVerticalScaleCharacterDescription
setBreastVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.breast.breastVerticalShiftCharacterDescription
setBrowGapHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowHorizontalShiftCharacterDescription
setBrowHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowVerticalShiftCharacterDescription
setBrowInboardShapeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowInnerVerticalShiftCharacterDescription
setBrowOutsideShapeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowOuterVerticalShiftCharacterDescription
setBrowRotationHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyebrows.eyebrowOverallRotationCharacterDescription
setCanthusHorizontalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.eyeCorners.innerEyeCornerHorizontalShiftCharacterDescription
setCanthusVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.eyeCorners.outerEyeCornerVerticalShiftCharacterDescription
setCharacterHeightHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.body.heightCharacterDescription
setCheekBoneRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheekbone.cheekboneFrontalShiftCharacterDescription
setCheekBoneWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheekbone.cheekboneHorizontalScaleCharacterDescription
setCheekHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheek.cheekVerticalShiftCharacterDescription
setCheekRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheek.cheekFrontalShiftCharacterDescription
setCheekWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.cheek.cheekHorizontalScaleCharacterDescription
setEarRollHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earHorizontalRotationCharacterDescription
setEarScaleHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earOverallScaleCharacterDescription
setEarYawHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earFrontalRotationCharacterDescription
setEyesGapHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeHorizontalShiftCharacterDescription
setEyesHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeVerticalShiftCharacterDescription
setEyesLengthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeVerticalScaleCharacterDescription
setEyesRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeFrontalShiftCharacterDescription
setEyesRotationHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeOverallRotationCharacterDescription
setEyesWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.overall.eyeHorizontalScaleCharacterDescription
setFaceWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.faceHorizontalScaleCharacterDescription
setFootScaleHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.feet.feetOverallScaleCharacterDescription
setGroinThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.hips.hipFrontalScaleCharacterDescription
setGroinWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.hips.hipHorizontalScaleCharacterDescription
setHandScaleHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.hands.handOverallScaleCharacterDescription
setHeadScaleHumanoidV2ShapeMethodDeclarationadvance.headFeatures.head.headOverallScaleCharacterDescription
setJawLengthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawlineVerticalShiftCharacterDescription
setJawRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinTipFrontalShiftCharacterDescription
setJawSmoothHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawlineRoundnessCharacterDescription
setJawVertexHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinTipVerticalShiftCharacterDescription
setJawVertexRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinFrontalShiftCharacterDescription
setJawVertexWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.chin.chinTipHorizontalScaleCharacterDescription
setLowerArmsStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.forearmVerticalScaleCharacterDescription
setLowerArmsThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.forearmFrontalScaleCharacterDescription
setLowerArmsWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.forearmHorizontalScaleCharacterDescription
setLowerFaceRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.lowerFaceFrontalShiftCharacterDescription
setLowerFaceWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.lowerFaceHorizontalScaleCharacterDescription
setLowerJawRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawFrontalShiftCharacterDescription
setLowerJawWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.jawline.jawHorizontalScaleCharacterDescription
setLowerMouthThicknessHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.lips.lowerLipThicknessCharacterDescription
setLowerStretchHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earLowerScaleCharacterDescription
setMouthHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.overall.mouthVerticalShiftCharacterDescription
setMouthRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.overall.mouthFrontalShiftCharacterDescription
setMouthShapeHumanoidV2ShapeMethodDeclaration-CharacterDescription
setMouthWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.overall.mouthHorizontalScaleCharacterDescription
setNeckStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.neck.neckVerticalScaleCharacterDescription
setNeckThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.neck.neckFrontalScaleCharacterDescription
setNeckWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.neck.neckHorizontalScaleCharacterDescription
setNoseHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.nose.noseBridge.noseBridgeFrontalShiftCharacterDescription
setNoseProtrusionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.nose.noseTip.noseTipVerticalShiftCharacterDescription
setNoseVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.nose.overall.noseOverallVerticalShiftCharacterDescription
setPupilHeightHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilVerticalScaleCharacterDescription
setPupilHorizontalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilHorizontalShiftCharacterDescription
setPupilVerticalPositionHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilVerticalShiftCharacterDescription
setPupilWidthHumanoidV2ShapeMethodDeclarationadvance.headFeatures.eyes.pupils.pupilHorizontalScaleCharacterDescription
setRibThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.ribs.ribFrontalScaleCharacterDescription
setRibWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.ribs.ribHorizontalScaleCharacterDescription
setShankScaleXHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.calfHorizontalScaleCharacterDescription
setShankScaleZHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.calfFrontalScaleCharacterDescription
setShankStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.calfVerticalScaleCharacterDescription
setShoulderArmThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.shoulderFrontalScaleCharacterDescription
setShoulderArmWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.shoulderHorizontalScaleCharacterDescription
setShoulderThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.chest.chestFrontalScaleCharacterDescription
setShoulderWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.chest.chestHorizontalScaleCharacterDescription
setThighStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.thighVerticalScaleCharacterDescription
setThighThicknessXHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.thighHorizontalScaleCharacterDescription
setThighThicknessZHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.legs.thighFrontalScaleCharacterDescription
setUpperArmsStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.upperArmVerticalScaleCharacterDescription
setUpperArmsThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.upperArmFrontalScaleCharacterDescription
setUpperArmsWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.arms.upperArmHorizontalScaleCharacterDescription
setUpperFaceRangeHumanoidV2ShapeMethodDeclarationadvance.headFeatures.faceShape.overall.upperFaceFrontalShiftCharacterDescription
setUpperMouthThicknessHumanoidV2ShapeMethodDeclarationadvance.headFeatures.mouth.lips.upperLipThicknessCharacterDescription
setUpperStretchHumanoidV2ShapeMethodDeclarationadvance.headFeatures.ears.earUpperScaleCharacterDescription
setWaistStretchHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.waist.waistVerticalScaleCharacterDescription
setWaistThicknessHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.waist.waistFrontalScaleCharacterDescription
setWaistWidthHumanoidV2ShapeMethodDeclarationadvance.bodyFeatures.waist.waistHorizontalScaleCharacterDescription

[修改]<类>Interactor 交互物

  • 删除交互姿态interactiveSlot,替换为为交互动画animationId,支持动画资源输入(兼容姿态输入)。
  • 优化交互物交互的延迟时间(仅动画资源输入可以生效,姿态资源还是有延迟)
  • 规范交互物的RPC能力。对于双端交互物:服务端调用广播,客户端调用如果是玩家主控端则广播,否则不生效。对于单端交互物:暂不保证交互效果。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
interactiveSlotInteractorGetAccessorslotInteractor
interactiveStanceInteractorGetAccessoranimationIdInteractor
interactiveSlotInteractorSetAccessorslotInteractor
interactiveStanceInteractorSetAccessoranimationIdInteractor
onInteractiveEndedInteractorPropertyDeclarationonLeaveInteractor
onInteractiveStartedInteractorPropertyDeclarationonEnterInteractor
onInteractorEnterInteractorPropertyDeclarationonEnterInteractor
onInteractorExitInteractorPropertyDeclarationonLeaveInteractor
endInteractInteractorMethodDeclarationleaveInteractor
enterInteractiveStateInteractorMethodDeclarationenterInteractor
exitInteractiveStateInteractorMethodDeclarationleaveInteractor
getInteractCharacterInteractorMethodDeclarationgetCurrentCharacterInteractor
getInteractiveStateInteractorMethodDeclarationoccupiedInteractor
getInteractiveStatusInteractorMethodDeclarationoccupiedInteractor
interactiveCharacterInteractorMethodDeclarationgetCurrentCharacterInteractor
startInteractInteractorMethodDeclarationenterInteractor

[修改]<类>MessageChannelService 消息频道服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceMessageChannelServiceMethodDeclaration-

[修改]<类>Mesh 模型

  • 删除【Mesh】模型对象,接口迁移至新增对象【Model】。
  • 删除无效属性applyImpulseOnDamageignoreRadialForceignoreRadialImpulse
  • 启用某功能的属性统一替换为Enabled后缀,此外属性名称简化。
gravityEnable` -> `gravityEnabled
isSimulatingPhysics` -> `physicsEnabled
massEnable` -> `massEnabled
massInKg` -> `mass
gravityEnable` -> `gravityEnabled
isSimulatingPhysics` -> `physicsEnabled
massEnable` -> `massEnabled
massInKg` -> `mass
  • 删除检测进入和离开模型事件委托onEnteronLeave,替换为onTouchonTouchEnd,方便后续接入碰撞查询结果(目前当且仅当“仅检测”才能触发事件)。

  • 删除设置模型颜色方法setMaterialColorgetMaterialColor。后续需通过【MaterialInstance】中的接口中的setVectorParameterValuegetVectorParameterValue替换。

    typescript
    private setMaterialColor(model: Model, Index: number, InColor: LinearColor) {
        let materialList = model.getMaterialInstance();
        materialList[Index].getAllVectorParameterName().forEach((v,i) => {
             materialList[Index].setVectorParameterValue(v, InColor);
        });
    }
    
    private getMaterialColor(model: Model, Index: number) {
        let materialList = model.getMaterialInstance();
        if(!(materialList.length > 0)) {
            return;
        }
        let nameList = materialList[Index].getAllVectorParameterName();
        return nameList.length > 0 ? materialList[Index].getVectorParameterValue(nameList[0]) : new LinearColor(1, 1, 1, 1);
    }
    private setMaterialColor(model: Model, Index: number, InColor: LinearColor) {
        let materialList = model.getMaterialInstance();
        materialList[Index].getAllVectorParameterName().forEach((v,i) => {
             materialList[Index].setVectorParameterValue(v, InColor);
        });
    }
    
    private getMaterialColor(model: Model, Index: number) {
        let materialList = model.getMaterialInstance();
        if(!(materialList.length > 0)) {
            return;
        }
        let nameList = materialList[Index].getAllVectorParameterName();
        return nameList.length > 0 ? materialList[Index].getVectorParameterValue(nameList[0]) : new LinearColor(1, 1, 1, 1);
    }
  • 新增setOutline方法和setPostProcessOutline方法,给模型绘制描边。

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
applyImpulseOnDamageMeshGetAccessor-
gravityEnableMeshGetAccessorgravityEnabledModel
ignoreRadialForceMeshGetAccessor-
ignoreRadialImpulseMeshGetAccessor-
isSimulatingPhysicsMeshGetAccessorphysicsEnabledModel
massEnableMeshGetAccessormassEnabledModel
massInKgMeshGetAccessormassModel
applyImpulseOnDamageMeshSetAccessor-
gravityEnableMeshSetAccessorgravityEnabledModel
ignoreRadialForceMeshSetAccessor-
ignoreRadialImpulseMeshSetAccessor-
isSimulatingPhysicsMeshSetAccessorphysicsEnabledModel
massEnableMeshSetAccessormassEnabledModel
massInKgMeshSetAccessormassModel
onEnterMeshPropertyDeclarationonTouchModel
onLeaveMeshPropertyDeclarationonTouchEndModel
createMaterialInstanceMeshMethodDeclarationcreateMaterialInstanceModel
getMaterialColorMeshMethodDeclaration-
getMaterialInstanceMeshMethodDeclarationgetMaterialInstanceModel
resetMaterialMeshMethodDeclarationresetMaterialModel
setCullDistanceMeshMethodDeclarationsetCullDistanceModel
setMaterialColorMeshMethodDeclaration-
setOutlineAndColorMeshMethodDeclarationsetOutlineModel
setStaticMeshAssetMeshMethodDeclarationsetStaticMeshAssetModel

[删除]<类>MobileSensor 移动传感器

  • 删除低频使用对象【MobileSensor】移动传感器

[删除]<类>NPC 非玩家角色

  • 删除【NPC】类,统一使用【Character】类代表角色对象,消除角色对象之间的区别。
  • 删除NPC专属接口。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
setServerMovementEnableNPCMethodDeclarationcomplexMovementEnabledCharacter
serverCalculateEnableNPCSetAccessorcomplexMovementEnabledCharacter

[删除]<类>Optimization 角色优化

  • 删除【Optimization】类,角色优化开关作为角色设置项,替换为【AvatarSettings】中optimizationEnabled
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
enableOptimizationOptimizationMethodDeclarationoptimizationEnabledAvatarSettings

[删除]<类>Particle 特效

  • 原先的类名【Particle】修改为更贴近当前资源特效机制和功能的【Effect】。
  • 重新梳理停止特效的接口实现,stop():停止但不销毁已发射粒子;forceStop():停止且销毁粒子。
  • 更新资源库特效资源,暴露高级参数。支持KV形式接口对特效资源的高级参数进行设置。setColor()setColorRandom()设置颜色或者颜色范围。setFloat()setFloatRandom()设置数值和数值范围。setVector()setVectorRandom()设置三维向量和向量范围。

img

  • 删除color修改为maskColor,该属性作为遮罩颜色覆盖特效整体颜色。
  • 删除particleLength,使用timeLength替换。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
loopParticleGetAccessorloopEffect替换
loopCountParticleGetAccessorloopCountEffect替换
particleLengthParticleGetAccessortimeLengthEffect替换
timeLengthParticleGetAccessortimeLengthEffect替换
translucentSortPriorityParticleGetAccessor-Effect删除
colorParticleSetAccessormaskcolorEffect替换
loopParticleSetAccessorloopEffect替换
loopCountParticleSetAccessorloopCountEffect替换
translucentSortPriorityParticleSetAccessor-Effect删除
onFinishedParticlePropertyDeclarationonFinishEffect替换
forceStopParticleMethodDeclarationforceStopEffect替换
playParticleMethodDeclarationplayEffect替换
setColorParticleMethodDeclarationsetColorEffect替换
setColorRandomParticleMethodDeclarationsetColorRandomEffect替换
setCullDistanceParticleMethodDeclarationsetCullDistanceEffect替换
setFloatParticleMethodDeclarationsetFloatEffect替换
setFloatRandomParticleMethodDeclarationsetFloatRandomEffect替换
setVectorParticleMethodDeclarationsetVectorEffect替换
setVectorRandomParticleMethodDeclarationsetVectorRandomEffect替换
stopParticleMethodDeclarationstopEffect替换

[修改]<类>Player 玩家

  • 去除继承GameObject,独立存在
  • 迁移MW中散落其他命名空间的Player相关的接口进入Player类中作为静态函数使用
  • 废弃玩家网络相关状态操作callback的接口,改为委托实现
  • 废弃玩家账户接口,方便后续重构AcountService
  • 迁移customTimeDilation至Pawn对象中,方便不同pawn对象使用不同时间膨胀
  • 新增control接口和onPawnChange委托方便玩家切换当前的控制对象
  • 新增操作玩家控制器输入旋转的接口setControllerRotationgetControllerRotation方便逐帧获取和设置当前控制器旋转输入。
  • 新增创建默认角色接口spawnDefaultCharacter方便重新生成玩家角色对象。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
customTimeDilationPlayerGetAccessorcustomTimeDilationPawn
addNetworkDisconnectListenerPlayerMethodDeclarationonPlayerDisconnectPlayer
addNetworkReconnectListenerPlayerMethodDeclarationonPlayerReconnectPlayer
getAccountPlayerMethodDeclaration-
getPlayerIDPlayerMethodDeclarationplayerIdPlayer
getTeamIdPlayerMethodDeclarationteamIdPlayer
getUserIdPlayerMethodDeclarationuserIdPlayer
getUserSystemIdPlayerMethodDeclaration-
removeNetworkDisconnectListenerPlayerMethodDeclarationonPlayerDisconnectPlayer
removeNetworkReconnectListenerPlayerMethodDeclarationonPlayerReconnectPlayer
setCustomTimeDilationPlayerMethodDeclarationcustomTimeDilationPawn

[修改]<类>PostProcess 后处理

  • 因后处理对象并不支持叠加使用,场景中有且仅有一份生效,故027版本将【PostProcess】后处理对象从资源库逻辑对象中删除,放置到世界对象以默认配置存在。

  • 删除继承自【GameObject】的接口,【PostProcess】不继承【GameObject】

  • 删除无效&易错的接口,仅保留bloomIntensityglobalSaturationglobalContrast三个全局属性。

  • 新增后处理模板,【PostProcess】后处理对象新增preset属性提供7种后处理预设:

    • 默认 Default = 0
    • 梦境 Dreamy = 1
    • 反差色 Contrast = 2
    • 暖阳 WarmSunshine = 3
    • 老照片 OldPhoto = 4
    • 夜幕 Night = 5
    • 鲜暖色 WarmContrast = 6

img

  • 新增【PostProcessConfig】后处理配置类,囊括后处理当前属性,解耦数据层和功能层。【PostProcess】后处理对象新增config属性。【PostProcessConfig】保证了外部接口的纯净,此外保留了后续可能需要暴露更多复杂的后处理参数的扩展性。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
ambientOcclusionIntensityPostProcessGetAccessor-
ambientOcclusionRadiusPostProcessGetAccessor-
autoExposureBiasPostProcessGetAccessor-
autoExposureMaxBrightnessPostProcessGetAccessor-
autoExposureMinBrightnessPostProcessGetAccessor-
bloomIntensityPostProcessGetAccessorbloomPostProcess
globalContrastPostProcessGetAccessorcontrastPostProcess
globalGammaPostProcessGetAccessor-
globalSaturationPostProcessGetAccessorsaturationPostProcess
hDRContrastPostProcessGetAccessor-
hDRGammaPostProcessGetAccessor-
hDRSaturationPostProcessGetAccessor-
lDR2HDRThresholdPostProcessGetAccessor-
lDRContrastPostProcessGetAccessor-
lDRGammaPostProcessGetAccessor-
lDRSaturationPostProcessGetAccessor-
lUTBlendPostProcessGetAccessor-
lUTTextureAssetByGuidPostProcessGetAccessor-
motionBlurPostProcessGetAccessor-
occlusionBlendPostProcessGetAccessor-
outlineCoveredAlphaPostProcessGetAccessor-
outlineCoveredEdgeAlphaPostProcessGetAccessor-
outlineNotCoveredAlphaPostProcessGetAccessor-
outlineNotCoveredEdgeAlphaPostProcessGetAccessor-
outlineWidthPostProcessGetAccessor-
toneBlackClipPostProcessGetAccessor-
toneCurveAmountPostProcessGetAccessor-
toneShoulderPostProcessGetAccessor-
toneSlopePostProcessGetAccessor-
toneToePostProcessGetAccessor-
toneWhiteClipPostProcessGetAccessor-
ambientOcclusionIntensityPostProcessSetAccessor-
ambientOcclusionRadiusPostProcessSetAccessor-
autoExposureBiasPostProcessSetAccessor-
autoExposureMaxBrightnessPostProcessSetAccessor-
autoExposureMinBrightnessPostProcessSetAccessor-
bloomIntensityPostProcessSetAccessorbloomPostProcess
globalContrastPostProcessSetAccessorcontrastPostProcess
globalGammaPostProcessSetAccessor-
globalSaturationPostProcessSetAccessorsaturationPostProcess
hDRContrastPostProcessSetAccessor-
hDRGammaPostProcessSetAccessor-
hDRSaturationPostProcessSetAccessor-
lDR2HDRThresholdPostProcessSetAccessor-
lDRContrastPostProcessSetAccessor-
lDRGammaPostProcessSetAccessor-
lDRSaturationPostProcessSetAccessor-
lUTBlendPostProcessSetAccessor-
lUTTextureAssetByGuidPostProcessSetAccessor-
motionBlurPostProcessSetAccessor-
occlusionBlendPostProcessSetAccessor-
outlineCoveredAlphaPostProcessSetAccessor-
outlineCoveredEdgeAlphaPostProcessSetAccessor-
outlineNotCoveredAlphaPostProcessSetAccessor-
outlineNotCoveredEdgeAlphaPostProcessSetAccessor-
outlineWidthPostProcessSetAccessor-
toneBlackClipPostProcessSetAccessor-
toneCurveAmountPostProcessSetAccessor-
toneShoulderPostProcessSetAccessor-
toneSlopePostProcessSetAccessor-
toneToePostProcessSetAccessor-
toneWhiteClipPostProcessSetAccessor-
postProcessConfigPostProcessPropertyDeclarationconfigPostProcess
addOutlineColorPostProcessMethodDeclaration-
addOutlineColorPostProcessMethodDeclaration-
getAmbientOcclusionIntensityPostProcessMethodDeclaration-
getAmbientOcclusionRadiusPostProcessMethodDeclaration-
getAutoExposureBiasPostProcessMethodDeclaration-
getAutoExposureMaxBrightnessPostProcessMethodDeclaration-
getAutoExposureMinBrightnessPostProcessMethodDeclaration-
getBloomIntensityPostProcessMethodDeclarationbloomPostProcess
getConfigPostProcessMethodDeclarationconfigPostProcess
getGlobalContrastPostProcessMethodDeclarationcontrastPostProcess
getGlobalGammaPostProcessMethodDeclaration-
getGlobalSaturationPostProcessMethodDeclarationsaturationPostProcess
getHDRContrastPostProcessMethodDeclaration-
getHDRGammaPostProcessMethodDeclaration-
getHDRSaturationPostProcessMethodDeclaration-
getInstancePostProcessMethodDeclaration-
getLDR2HDRThresholdPostProcessMethodDeclaration-
getLDRContrastPostProcessMethodDeclaration-
getLDRGammaPostProcessMethodDeclaration-
getLDRSaturationPostProcessMethodDeclaration-
getLUTBlendPostProcessMethodDeclaration-
getLUTTextureAssetByGuidPostProcessMethodDeclaration-
getMotionBlurPostProcessMethodDeclaration-
getOcclusionBlendPostProcessMethodDeclaration-
getOutlineCoveredAlphaPostProcessMethodDeclaration-
getOutlineCoveredEdgeAlphaPostProcessMethodDeclaration-
getOutlineNotCoveredAlphaPostProcessMethodDeclaration-
getOutlineNotCoveredEdgeAlphaPostProcessMethodDeclaration-
getOutlineWidthPostProcessMethodDeclaration-
getToneBlackClipPostProcessMethodDeclaration-
getToneCurveAmountPostProcessMethodDeclaration-
getToneShoulderPostProcessMethodDeclaration-
getToneSlopePostProcessMethodDeclaration-
getToneToePostProcessMethodDeclaration-
getToneWhiteClipPostProcessMethodDeclaration-
setAmbientOcclusionIntensityPostProcessMethodDeclaration-
setAmbientOcclusionRadiusPostProcessMethodDeclaration-
setAutoExposureBiasPostProcessMethodDeclaration-
setAutoExposureMaxBrightnessPostProcessMethodDeclaration-
setAutoExposureMinBrightnessPostProcessMethodDeclaration-
setBloomIntensityPostProcessMethodDeclarationbloomPostProcess
setConfigPostProcessMethodDeclarationconfigPostProcess
setGlobalContrastPostProcessMethodDeclarationcontrastPostProcess
setGlobalGammaPostProcessMethodDeclaration-
setGlobalSaturationPostProcessMethodDeclarationsaturationPostProcess
setHDRContrastPostProcessMethodDeclaration-
setHDRGammaPostProcessMethodDeclaration-
setHDRSaturationPostProcessMethodDeclaration-
setLDR2HDRThresholdPostProcessMethodDeclaration-
setLDRContrastPostProcessMethodDeclaration-
setLDRGammaPostProcessMethodDeclaration-
setLDRSaturationPostProcessMethodDeclaration-
setLUTBlendPostProcessMethodDeclaration-
setLUTTextureAssetByGuidPostProcessMethodDeclaration-
setMotionBlurPostProcessMethodDeclaration-
setOcclusionBlendPostProcessMethodDeclaration-
setOutlineCoveredAlphaPostProcessMethodDeclaration-
setOutlineCoveredEdgeAlphaPostProcessMethodDeclaration-
setOutlineNotCoveredAlphaPostProcessMethodDeclaration-
setOutlineNotCoveredEdgeAlphaPostProcessMethodDeclaration-
setOutlineWidthPostProcessMethodDeclaration-
setPresetPostProcessMethodDeclarationpresetPostProcess
setToneBlackClipPostProcessMethodDeclaration-
setToneCurveAmountPostProcessMethodDeclaration-
setToneShoulderPostProcessMethodDeclaration-
setToneSlopePostProcessMethodDeclaration-
setToneToePostProcessMethodDeclaration-
setToneWhiteClipPostProcessMethodDeclaration-

[修改]<类>PostProcessConfig 后处理配置类

  • 后续需要暴露更多复杂的后处理参数即在配置类中新增。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
ambientOcclusionIntensityPostProcessConfigPropertyDeclaration-
ambientOcclusionRadiusPostProcessConfigPropertyDeclaration-
autoExposureBiasPostProcessConfigPropertyDeclaration-
autoExposureMaxBrightnessPostProcessConfigPropertyDeclaration-
autoExposureMinBrightnessPostProcessConfigPropertyDeclaration-
bloomIntensityPostProcessConfigPropertyDeclarationbloomIntensityPostProcessConfig
globalContrastPostProcessConfigPropertyDeclarationglobalContrastPostProcessConfig
globalGammaPostProcessConfigPropertyDeclaration-
globalSaturationPostProcessConfigPropertyDeclarationglobalSaturationPostProcessConfig
hdrContrastPostProcessConfigPropertyDeclaration-
hdrGammaPostProcessConfigPropertyDeclaration-
hdrSaturationPostProcessConfigPropertyDeclaration-
ldr2HDRThresholdPostProcessConfigPropertyDeclaration-
ldrContrastPostProcessConfigPropertyDeclaration-
ldrGammaPostProcessConfigPropertyDeclaration-
ldrSaturationPostProcessConfigPropertyDeclaration-
lutBlendPostProcessConfigPropertyDeclarationlutBlendPostProcessConfig
motionBlurPostProcessConfigPropertyDeclaration-
occluderBlendPostProcessConfigPropertyDeclaration-
outlineCoveredAlphaPostProcessConfigPropertyDeclaration-
outlineCoveredEdgeAlphaPostProcessConfigPropertyDeclaration-
outlineNotCoveredAlphaPostProcessConfigPropertyDeclaration-
outlineNotCoveredEdgeAlphaPostProcessConfigPropertyDeclaration-
outlineWidthPostProcessConfigPropertyDeclaration-
toneBlackClipPostProcessConfigPropertyDeclaration-
toneCurveAmountPostProcessConfigPropertyDeclaration-
toneShoulderPostProcessConfigPropertyDeclaration-
toneSlopePostProcessConfigPropertyDeclaration-
toneToePostProcessConfigPropertyDeclaration-
toneWhiteClipPostProcessConfigPropertyDeclaration-

[删除]<类>Projectile 投掷物

  • 删除【Projectile】投掷物,**替换为重构对象【ProjectileMovement】**投掷物移动功能类。
  • 删除继承自【GameObject】的接口,【ProjectileMovement】不继承【GameObject】。以后使用投掷功能不再需要生成【GameObject】,再挂载具体的对象。而是将它转化成带有投掷能力的对象自行发射。
  • 删除碰撞胶囊体范围属性collisionLengthcollisionRadius【ProjectileMovement】的碰撞形状和范围由“被投掷对象”的【简单碰撞信息】决定。
  • 删除飞行距离属性flyRange,因为它仅在无重力且不反弹时生效。而【ProjectileMovement】的运动距离由一系列复杂的运动参数(重力、碰撞速度损失系数、初始速度、加速度等)共同决定。因此替换为LifeSpan运动时间供用户自定义。
  • 删除最大弹跳次数maxBounceCount,因为弹跳次数是结果而不是运动因数。替换为碰撞速度损失系数speedRetention此外【ProjectileMovement】的碰撞结果:反弹|穿透,由“被投掷对象”的碰撞状态collisionStatus**决定。**开启碰撞或者碰撞响应为block则反弹,其余皆为穿透(如果关闭碰撞会无法触发委托)。
  • 删除onProjectileBeginOverlap“开始重叠”、onProjectileBounce“反弹”、onProjectileEndOverlap“结束重叠”、onProjectileHit“击中”,将四个委托事件合并,统一使用onProjectileHit**击中事件委托。**重叠、反弹和击中只是碰撞结果的不同,触发同一个事件。
  • 删除onProjectileInterrupt“投掷物自动终止”,替换为onProjectileLifeEnd“投掷物生命结束”。
  • 删除绑定玩家方法bindPlayer,**【ProjectileMovement】不依赖具体的玩家工作。**此外提供owner属性方便用户指定发射人后续用作业务逻辑。
  • 删除统一赋值的init方法,新增【ProjectileMovementConfig】投掷物配置类,囊括投掷物属性,解耦数据层和功能层。【ProjectileMovement】的构造方法中新增config参数便于用户使用配置去构造投掷物
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
collisionLengthProjectileGetAccessor-
collisionRadiusProjectileGetAccessor-
flyRangeProjectileGetAccessor-
gravityScaleProjectileGetAccessorgravityScaleProjectileMovement
initialSpeedProjectileGetAccessorinitialSpeedProjectileMovement
maxBounceCountProjectileGetAccessor-
simulatePhysicsProjectileGetAccessor-
collisionLengthProjectileSetAccessor-
collisionRadiusProjectileSetAccessor-
flyRangeProjectileSetAccessor-
gravityScaleProjectileSetAccessorgravityScaleProjectileMovement
initialSpeedProjectileSetAccessorinitialSpeedProjectileMovement
maxBounceCountProjectileSetAccessor-
simulatePhysicsProjectileSetAccessor-
onProjectileBeginOverlapProjectilePropertyDeclarationonProjectileHitProjectileMovement
onProjectileBounceProjectilePropertyDeclarationonProjectileHitProjectileMovement
onProjectileEndOverlapProjectilePropertyDeclarationonProjectileHitProjectileMovement
onProjectileHitProjectilePropertyDeclarationonProjectileHitProjectileMovement
onProjectileInterruptProjectilePropertyDeclarationonProjectileLifeEndProjectileMovement
bindPlayerProjectileMethodDeclaration-
initProjectileMethodDeclaration-
launchProjectileMethodDeclarationlaunchProjectileMovement
pauseProjectileMethodDeclarationpauseProjectileMovement
resumeProjectileMethodDeclarationresumeProjectileMovement

[删除]<类>ProjectileLauncher 投掷物发射器

  • 删除【ProjectileLauncher】投掷发射器,替换为重构对象【ObjectLauncher】对象发射器
  • 删除对象中过度设计的接口:
    • 加速accelerationEnableaccelerationEnableDistanceaccelerationEnableModeaccelerationEnableTime
    • 重力gravityEnablegravityEnableDistancegravityEnableModegravityEnableTime
    • 发射参数startLocationlaunchDirection
    • 生命周期maxCollisionTimesisAutoDestroyrange
    • 绘制traceLineStyledrawPredictedTrajectory
  • 删除碰撞模式属性collisionMode,替换为布尔值属性isShouldBounce,true为反弹,false为穿透。
  • 删除碰撞损失因数属性collisionLossCoefficient,替换为collisionVelocityRetention碰撞速度保留比例。
  • 投掷物形状由球体->胶囊体。因此删除检测半径detectionRadius,替换为胶囊体半径capsuleRadiuscapsuleHalfLength
  • 删除重力加速度gravitationalAcceleration,替换为重力缩放gravityScale,采用世界(物理区域)重力值。
  • 发射器在发射时制造投掷物,对应委托事件onProjectileSpawned替换为onProjectileLifeStart,当投掷物不再运动时会自动销毁,对应委托事件onProjectileDestroy替换为onProjectileLifeEnd
  • 删除绑定/解绑玩家方法bindPlayerunbindPlayer,【ObjectLauncher】不再需要手动绑定Player,当客户端调用发射方法时,发射器会给制造的投掷物实例中owner属性赋值该客户端便于用户执行游戏逻辑。在服务端调用发射方法时owner为空。
  • 新增【ProjectileInst】投掷物实例,发射器发射对象时流程如下:
    • 通过自身参数创建一个投掷物实例。
    • 根据调用端给投掷物实例owner属性赋值。
    • 将传入的发射对象挂载到投掷物实例上。
    • 投掷物实例开始运动。
    • 投掷物实例触发发射器对应事件执行绑定函数。
    • 投掷物停止运动,解绑子对象后自行销毁。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
accelerationProjectileLauncherGetAccessoraccelerationObjectLauncher
accelerationEnableProjectileLauncherGetAccessor-
accelerationEnableDistanceProjectileLauncherGetAccessor-
accelerationEnableModeProjectileLauncherGetAccessor-
accelerationEnableTimeProjectileLauncherGetAccessor-
collisionLossCoefficientProjectileLauncherGetAccessorcollisionVelocityRetentionObjectLauncher
collisionModeProjectileLauncherGetAccessorisShouldBounceObjectLauncher
detectionRadiusProjectileLauncherGetAccessorcapsuleRadiusObjectLauncher
gravitationalAccelerationProjectileLauncherGetAccessorgravityScaleObjectLauncher
gravityEnableProjectileLauncherGetAccessor-
gravityEnableDistanceProjectileLauncherGetAccessor-
gravityEnableModeProjectileLauncherGetAccessor-
gravityEnableTimeProjectileLauncherGetAccessor-
initialSpeedProjectileLauncherGetAccessorinitialSpeedObjectLauncher
isAutoDestroyProjectileLauncherGetAccessor-
launchDirectionProjectileLauncherGetAccessor-
lifeSpanProjectileLauncherGetAccessorlifeSpanObjectLauncher
maxCollisionTimesProjectileLauncherGetAccessor-
maxSpeedProjectileLauncherGetAccessormaxSpeedObjectLauncher
rangeProjectileLauncherGetAccessor-
startLocationProjectileLauncherGetAccessor-
traceLineStyleProjectileLauncherGetAccessor-
accelerationProjectileLauncherSetAccessoraccelerationObjectLauncher
accelerationEnableProjectileLauncherSetAccessor-
accelerationEnableDistanceProjectileLauncherSetAccessor-
accelerationEnableModeProjectileLauncherSetAccessor-
accelerationEnableTimeProjectileLauncherSetAccessor-
collisionLossCoefficientProjectileLauncherSetAccessorcollisionVelocityRetentionObjectLauncher
collisionModeProjectileLauncherSetAccessorisShouldBounceObjectLauncher
detectionRadiusProjectileLauncherSetAccessorcapsuleRadiusObjectLauncher
gravitationalAccelerationProjectileLauncherSetAccessorgravityScaleObjectLauncher
gravityEnableProjectileLauncherSetAccessor-
gravityEnableDistanceProjectileLauncherSetAccessor-
gravityEnableModeProjectileLauncherSetAccessor-
gravityEnableTimeProjectileLauncherSetAccessor-
initialSpeedProjectileLauncherSetAccessorinitialSpeedObjectLauncher
isAutoDestroyProjectileLauncherSetAccessor-
launchDirectionProjectileLauncherSetAccessor-
lifeSpanProjectileLauncherSetAccessorlifeSpanObjectLauncher
maxCollisionTimesProjectileLauncherSetAccessor-
maxSpeedProjectileLauncherSetAccessormaxSpeedObjectLauncher
rangeProjectileLauncherSetAccessor-
startLocationProjectileLauncherSetAccessor-
traceLineStyleProjectileLauncherSetAccessor-
onProjectileDestroyProjectileLauncherPropertyDeclarationonProjectileLifeEndObjectLauncher
onProjectileHitProjectileLauncherPropertyDeclarationonProjectileHitObjectLauncher
onProjectileSpawnedProjectileLauncherPropertyDeclarationonProjectileLifeStartObjectLauncher
bindPlayerProjectileLauncherMethodDeclaration-
drawPredictedTrajectoryProjectileLauncherMethodDeclaration-
predictedTrajectoryProjectileLauncherMethodDeclarationpredictedTrajectoryObjectLauncher
spawnProjectileInstanceLaunchProjectileLauncherMethodDeclarationspawnProjectileInstanceLaunchObjectLauncher
spawnProjectileInstanceLaunchToTargetProjectileLauncherMethodDeclarationspawnProjectileInstanceLaunchToTargetObjectLauncher
unbindPlayerProjectileLauncherMethodDeclaration-

[修改]<类>PurchaseService 购买服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstancePurchaseServiceMethodDeclaration-

[修改]<类>RoomService 购买服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
  • 删除无效和MGS相关接口,以及部分内部方法。23
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
createAndJoinRoomRoomServiceMethodDeclaration-
destroySDKRoomServiceMethodDeclaration-
dispatchMGSChatMessageRoomServiceMethodDeclaration-
getInstanceRoomServiceMethodDeclaration-
initAndLoginMGSRoomServiceMethodDeclaration-
invokeMGSConfigRoomServiceMethodDeclaration-
joinRoomRoomServiceMethodDeclaration-
leaveRoomRoomServiceMethodDeclaration-
queryPlayerActionRoomServiceMethodDeclaration-
registerMGSEventRoomServiceMethodDeclaration-
registerMGSEventListenerRoomServiceMethodDeclaration-
MethodDeclaration-

[修改]<类>RouteService 跳游戏服务

  • 删除getInstance(),支持类名+方法名的调用方式,缩短调用链。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
getInstanceRouteServiceMethodDeclaration-

[删除]<类>SkyBox 天空盒

  • 删除【SkyBox】天空盒,接口修改为静态调用形式迁移至新增对象【Skybox】。因为天空盒并不支持叠加使用,场景中有且仅有一份生效,故027版本将其放置到世界对象以默认配置存在。
  • 删除继承自【GameObject】的接口,【Skybox】不继承【GameObject】
  • 对属性名,方法名进行修改,删除老接口,替换为新接口。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
cloudDensitySkyBoxGetAccessorcloudDensitySkybox
cloudEnableSkyBoxGetAccessorcloudVisibleSkybox
cloudEnabledSkyBoxGetAccessorcloudVisibleSkybox
cloudOpacitySkyBoxGetAccessorcloudOpacitySkybox
cloudSpeedSkyBoxGetAccessorcloudSpeedSkybox
cloudTintSkyBoxGetAccessorcloudColorSkybox
moonEnableSkyBoxGetAccessormoonVisibleSkybox
moonIntensitySkyBoxGetAccessormoonIntensitySkybox
moonSizeSkyBoxGetAccessormoonSizeSkybox
moonTintSkyBoxGetAccessormoonColorSkybox
skyDomeBotTintSkyBoxGetAccessorskyDomeBottomColorSkybox
skyDomeGradientEnableSkyBoxGetAccessorskyDomeGradientEnabledSkybox
skyDomeHorizontalFallOffSkyBoxGetAccessorskyDomeHorizontalFallOffSkybox
skyDomeHorizontalTintSkyBoxGetAccessorskyDomeMiddleColorSkybox
skyDomeIntensitySkyBoxGetAccessorskyDomeIntensitySkybox
skyDomeTintSkyBoxGetAccessorskyDomeBaseColorSkybox
skyDomeTopTintSkyBoxGetAccessorskyDomeTopColorSkybox
skyPresetSkyBoxGetAccessorpresetSkybox
starEnableSkyBoxGetAccessorstarVisibleSkybox
starIntensitySkyBoxGetAccessorstarIntensitySkybox
starTilingSkyBoxGetAccessorstarDensitySkybox
sunEnableSkyBoxGetAccessorsunVisibleSkybox
sunIntensitySkyBoxGetAccessorsunIntensitySkybox
sunSizeSkyBoxGetAccessorsunSizeSkybox
sunTintSkyBoxGetAccessorsunColorSkybox
cloudDensitySkyBoxSetAccessorcloudDensitySkybox
cloudEnableSkyBoxSetAccessorcloudVisibleSkybox
cloudOpacitySkyBoxSetAccessorcloudOpacitySkybox
cloudSpeedSkyBoxSetAccessorcloudSpeedSkybox
cloudTextureAssetByIDSkyBoxSetAccessorcloudTextureIDSkyBox
cloudTintSkyBoxSetAccessorcloudColorSkybox
moonEnableSkyBoxSetAccessormoonVisibleSkybox
moonIntensitySkyBoxSetAccessormoonIntensitySkybox
moonSizeSkyBoxSetAccessormoonSizeSkybox
moonTextureAssetByIDSkyBoxSetAccessormoonTextureIDSkyBox
moonTintSkyBoxSetAccessormoonColorSkybox
skyDomeBotTintSkyBoxSetAccessorskyDomeBottomColorSkybox
skyDomeGradientEnableSkyBoxSetAccessorskyDomeGradientEnabledSkybox
skyDomeHorizontalFallOffSkyBoxSetAccessorskyDomeHorizontalFallOffSkybox
skyDomeHorizontalTintSkyBoxSetAccessorskyDomeMiddleColorSkybox
skyDomeIntensitySkyBoxSetAccessorskyDomeIntensitySkybox
skyDomeTextureAssetByIDSkyBoxSetAccessorskyDomeTextureIDSkyBox
skyDomeTintSkyBoxSetAccessorskyDomeBaseColorSkybox
skyDomeTopTintSkyBoxSetAccessorskyDomeTopColorSkybox
skyPresetSkyBoxSetAccessorpresetSkybox
starEnableSkyBoxSetAccessorstarVisibleSkybox
starIntensitySkyBoxSetAccessorstarIntensitySkybox
starTextureAssetByIDSkyBoxSetAccessorstarTextureIDSkyBox
starTilingSkyBoxSetAccessorstarDensitySkybox
sunEnableSkyBoxSetAccessorsunVisibleSkybox
sunIntensitySkyBoxSetAccessorsunIntensitySkybox
sunSizeSkyBoxSetAccessorsunSizeSkybox
sunTextureAssetByIDSkyBoxSetAccessorsunTextureIDSkyBox
sunTintSkyBoxSetAccessorsunColorSkybox
refreshSkyBoxMethodDeclarationrefreshSkybox
resetSkyBoxMethodDeclarationresetSkybox

[修改]<类>SkyLight 天空光

  • 删除【DirectionalLight】平行光,接口修改为静态调用形式迁移至新增对象【Lighting】。
  • 删除继承自【GameObject】的接口,【Lighting】不继承【GameObject】。
  • 删除光强intensity替换为brightness
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
intensitySkyLightGetAccessorbrightnessLighting
lightColorSkyLightGetAccessorlightColorLighting
intensitySkyLightSetAccessorbrightnessLighting
lightColorSkyLightSetAccessorlightColorLighting

[删除]<类>SomatotypeBase 体型基类

  • 删除【SomatotypeBase】体型基类。内含的角色mesh描边接口使用新增的【Pawn】对象中代替。
  • 删除enableOutlinepostProcessObj,因后处理对象已修改,接口无效。
  • 删除启用后处理方法enablePostProcess,现在场景中默认存在一个【PostProcess】对象,无需启用。
  • 修改普通描边setOutline和后处理描边setPostProcessOutline实现,方法中参数控制描边开启,颜色和宽度。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
enableOutlineSomatotypeBasePropertyDeclaration-
postProcessObjSomatotypeBasePropertyDeclaration-
enablePostProcessSomatotypeBaseMethodDeclaration-修改方案
setOutlineSomatotypeBaseMethodDeclarationsetOutlinePawn
setOutlineAdvanceSomatotypeBaseMethodDeclarationsetPostProcessOutlinePawn

[修改]<类>Sound 音效

  • 新增音效衰减形状,支持球体,胶囊体,盒体和锥体。
  • 新增attenuationShapeExtents属性统一表示音效形状尺寸,删除原有尺寸相关接口。
  • 新增衰减方式attenuationDistanceModel,提供线性、指数、倒数、反指数四种衰减函数曲线。
  • 废弃失效接口:drawInnerBoundsgetIsDrawInnerBounds()
  • 删除失效接口:setSoundSphere()
  • 删除autoPlay这种仅编辑器可见的特例属性,避免歧义。
  • 删除setAudioAssetByGuid(),新增setSoundAsset()代替。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
autoPlaySoundGetAccessor-
currentProgressSoundGetAccessortimePositionSound
drawInnerBoundsSoundGetAccessor-
durationSoundGetAccessortimeLengthSound
fallOffDistanceSoundGetAccessorfalloffDistanceSound
innerRadiusSoundGetAccessorattenuationShapeExtentsSound
isAutoPlaySoundGetAccessor-
loopSoundGetAccessorisLoopSound
outerRadiusSoundGetAccessorfalloffDistanceSound
playStateSoundGetAccessor-
shapeExtentsSoundGetAccessorattenuationShapeExtentsSound
soundDistanceSoundGetAccessorattenuationShapeExtentsSound
spatializationSoundGetAccessorisSpatializationSound
timelengthSoundGetAccessortimeLengthSound
uiSoundSoundGetAccessorisUISoundSound
volumeMultiplierSoundGetAccessorvolumeSound
audioAssetSoundSetAccessorsetSoundAssetSound
autoPlaySoundSetAccessortimeLengthSound
drawInnerBoundsSoundSetAccessor-
fallOffDistanceSoundSetAccessorfalloffDistanceSound
innerRadiusSoundSetAccessorattenuationShapeExtentsSound
isAutoPlaySoundSetAccessor-
loopSoundSetAccessorisLoopSound
outerRadiusSoundSetAccessorfalloffDistanceSound
shapeExtentsSoundSetAccessorattenuationShapeExtentsSound
soundDistanceSoundSetAccessorattenuationShapeExtentsSound
spatializationSoundSetAccessorisSpatializationSound
uiSoundSoundSetAccessorisUISoundSound
volumeMultiplierSoundSetAccessorvolumeSound
onSoundFinishedSoundPropertyDeclarationonFinishSound
onSoundPausedSoundPropertyDeclarationonPauseSound
onSoundStartedSoundPropertyDeclarationonPlaySound
getIsDrawInnerBoundsSoundMethodDeclaration-
setAudioAssetByGuidSoundMethodDeclarationsetSoundAssetSound
setSoundSphereSoundMethodDeclaration-

[删除]<类>Sequence 缓动序列

删除【Sequence 】,替换为【TweenSequence】。

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
nextIDSequenceMethodDeclarationnextIDTweenSequence

[修改]<类>SoundService 音效服务

  • 去除getInstance(),支持类名+方法名的调用方式,缩短调用链。
  • 删除clearAll方法,屏蔽用户对内部对象池的操作。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
clearAllSoundServiceMethodDeclaration-
get3DSoundGameObjectSoundServiceMethodDeclarationget3DSoundByIdSoundService
getInstanceSoundServiceMethodDeclaration-

[修改]<类>Stance 基础姿态

删除内部接口playInternalstopInternal

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
playInternalStance-
stopInternalStance-

[修改]<类>SwimmingVolume 游泳区

  • 删除inArea方法,改为直接判断角色对象游泳状态

    typescript
    // 判断游泳状态
    Player.localPlayer.character.movementMode == mw.MovementMode.Swim
    // 判断游泳状态
    Player.localPlayer.character.movementMode == mw.MovementMode.Swim
  • 新增fluidFriction流体摩擦力属性

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
inAreaSwimmingVolume-修改方案

[修改]<命名空间>SelectUtil 选择工具

  • 由命名空间修改为类对象,静态封装原有方法,类名仍采用【SelectUtil】。

[修改]<类>Trigger 触发器

  • 新增shape属性替换切换形状和判断形状的接口,shapeExtent属性控制形状大小。
  • 新增enabled替换设置触发器激活状态的接口。
接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
isBoxShapeTriggerMethodDeclarationshapeTrigger
isInAreaTriggerMethodDeclarationcheckInAreaTrigger
isSphereShapeTriggerMethodDeclarationshapeTrigger
setBoxExtentTriggerMethodDeclarationshapeExtentTrigger
setCollisionEnabledTriggerMethodDeclarationenabledTrigger
setSphereRadiusTriggerMethodDeclarationshapeExtentTrigger
toggleTriggerShapeTriggerMethodDeclarationshapeTrigger

[修改]<类>TouchInput

  • 删除setPlayerController接口,相关调用代码可以直接删除

[删除]<type>AnyArray

img

img

[删除]<类>UI类的slot接口

为了缩短相关接口调用链,方便代码书写,删除了slot接口

img

img

[修改]<类>UIManager管理类

UImanager修改为UIService,常见写法修改如下:

  • 删掉ui_manager: mw.UIManager之类的声明
  • 删掉this.ui_manager = mw.UIService
  • 类似this.ui_manager.getUI、this.ui_manager.show、this.ui_manager.hide替换为 UIService.getUI、UIService.show、UIService.hide

img

img

[修改]<类>UIWidget 世界UI

接口名称(老)属类(老)接口类型(老)接口名称(新)属类(新)修改方案
cylinderArcAngleUIWidgetGetAccessor-
geometryModeUIWidgetGetAccessor-
cylinderArcAngleUIWidgetSetAccessor-
geometryModeUIWidgetSetAccessor-
getUIUIWidgetMethodDeclarationgetTargetUIWidgetUIWidget
setUIUIWidgetMethodDeclarationsetTargetUIWidgetUIWidget
setUIbyGUIDUIWidgetMethodDeclarationsetUIbyIDUIWidget

[删除]<类>VehicleCameraSetting 载具摄像机配置

因摄像机系统重构,删除了摄像机配置相关接口,【VehicleCameraSetting】 载具摄像机配置同样进行删除处理。

[新增]<类>Navigation 寻路(导航)

  • 新增【Navigation】寻路类,承载寻路相关接口。
API含义老API新API修改类型
跟随目标Gameplay.follow()Navigation.follow()使用新接口代替
停止跟随Gameplay.clearFollow()Navigation.clearFollow()使用新接口代替
寻路移动Gameplay.moveTo()Navigation.navigateTo()使用新接口代替
导航停止Gameplay.clearMoveTo()Navigation.stopNavigateTo()使用新接口代替

[新增]<类>Pawn 控制对象

  • 新增【Pawn】对象,保留后续可操作对象增加的扩展性,便于Player与Character解耦。
  • pass描边和后处理描边由其他命名空间下沉至具体Pawn对象中,直接调用。
  • 自定义时间膨胀由Player迁移至Pawn对象中,方便独立生效。

[删除]<类>PlayerStart 初生点

[删除]<类>Prefab 预制体

[废弃]<类>UGCService UGC服务

删除外部内部使用对象【UGCService】

[修改]<接口> projecthorldPositionlowidgetPosition现已移动为InputUtil类的接口

需要在InputUtil下调用projecthorldPositionlowidgetPosition()

修改前:

image-20231024110222608

修改后:

image-20231024110627074