1.0.1 • Published 5 months ago

xverse-components-npc-guide v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

API

参数名类型说明默认值是否必填备注
needNpcboolean是否需要 npc-false-
npcAvatarIdstring带揽 npc 的 avatarId-false-
npcUserIdstring带揽 npc 的 userId-false需要和 Npc 组件对齐,注意需要有特殊性
isFromNpcboolean是否来自场景中的 NPC-false如果场景中有多个和带揽 npc,需要设置 npcUserId
targetPointIdstring带览目标点-true用表达式变量可实现带览到多个不通点位
lookAtPointstring相机和角色朝向点位-false带览结束后优先用该点位作为朝向点位,用表达式变量可实现每个点位的不同
offsetLrnumber带览 npc 左右偏移量20false-
offsetFbnumber带览 npc 前后偏移量100false-
minDistancenumber最小带揽距离50false当目标点的距离比该距离小的时候不带揽
disposeWhenComponentUnmountboolean当带览组件销毁时销毁 npctruefalse默认销毁
npcBackPointIdstring不销毁 npc 时回到点位-false当带览组件销毁时不销毁带揽 npc,且设置了 npc 的出生点;销毁后 npc 会回到该出生点,不设置则呆在原属
npcScalingIScaling带揽 npc 缩放比-false默认不缩放
onEnd() => void带揽结束-false-
styleCSSProperties-false-
classNamestring-false-
1.0.1

5 months ago

1.0.0

5 months ago

0.1.0

6 months ago

0.1.1

6 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

9 months ago