egret-docs-master/Engine3D/Egret3DDisp/Billboard/README.md

20 lines
433 B
Markdown
Raw Normal View History

2024-06-19 13:32:32 +08:00
Billboard
----------
场景中共告板对象 会根据场景中摄像机的旋转进行变化 使自身一直朝向摄像机
----------
// 创建公告板
protected createBillboard() {
// Geometry 可以指定
var billboard: egret3d.Billboard = new egret3d.Billboard(new egret3d.TextureMaterial());
this.view.addChild3D(billboard);
billboard.y = 300;
}
![](Img_1.gif)
----------