• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)

1. 物理射线检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 100%]

....HitResult = new Laya.HitResult(); var hitResults = []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults); //遍历射线检测的结果 for (i = 0, n = this.hitResults.length; i (图...

来源: Laya2.0_文档 发布时间: 20210715

2. 物理射线检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 89%]

...ory=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript this.hitResult = new Laya.HitResult(); this.hitResults= []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults...

来源: Laya2.0_文档 发布时间: 20210715

3. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHan...

来源: Laya2.0_文档 发布时间: 20210715

4. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 85%]

...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new ...

来源: Laya2.0_文档 发布时间: 20210714

5. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 74%]

...yFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, th...

来源: Laya2.0_文档 发布时间: 20210715