xverse-components-image-texture
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

API

参数名 类型 说明 默认值 是否必填 备注
bomId string 贴图的 3D 模型素材 - true 模型素材
imageUrl string 贴图的图片素材 - true 图片素材
disposeWhenComponentsDispose boolean 组件销毁时是否销毁 3D 场景中贴图 - false -
maxVisibleValue number 最大可视距离 100000 false 可设置在场景中的最远可视距离,超过后,不显示素材
textureHasAlpha boolean 图片是否有 alpha 值 - false 贴图带有 alpha 通道,需要设置为 true,贴图不带 alpha 通道,设置为 false(默认)
withMipmap boolean 开启 withMipmap - false -
onClick (data?: { bomId: string; imageUrl: string }) => void 点击时触发 - false -

Readme

Keywords

Package Sidebar

Install

npm i xverse-components-image-texture

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

87.8 kB

Total Files

9

Last publish

Collaborators

  • canny_1207
  • joycess
  • shi2800