xverse-components-send-gift
v1.0.2
Published
xverse components send-gift
Downloads
21
Readme
API
| 参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 | | ----------------- | --------------- | ------------------ | ------ | -------- | -------------------------------------------------------------------------------- | | gifts | IGiftOption[] | 礼物配置 | - | true | - | | receiverAnimation | IActionItem[] | 收礼动作配置 | - | false | - | | giftEffectHeight | number | 礼物特效的高度 | - | false | 在收礼物者头顶的高度 | | broadcastLevel | EBroadcastLevel | 广播级别 | - | false | 当指定为房间级别的时,其他玩家能看到;当指定为指定同步人,只有送礼和收礼者能看到 | | onPlay | () => void | 送礼播放时回调 | - | false | - | | onEnd | () => void | 送礼特效结束时回调 | - | false | - |