深浅模式
Mark 标记
说明
用于构建一个简易的图标标记,它相较于Panel构建的图标有一个区别在于,Mark可以被其它模型遮挡。
安装
sh
npm install @poggi/three-entity
pnpm add @poggi/three-entity
yarn add @poggi/three-entity通过Loader加载贴图,传入贴图之后即可
loading
API
Methods
constructor(options: IMarkConstructorOption)
构造函数
update(texture: Texture)
修改图片
Interfaces
IMarkConstructorOption
| 属性名 | 说明 | 类型 | 是否必选 | 默认值 |
|---|---|---|---|---|
| img | 图像 | Texture | 是 | - |
| anchor | 锚点 | Vector2 | 否 | - |
