Skip to content

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否-