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

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

991. 3D中摄像机绕物体旋转该如何实现? [ 26%]

...in); } protected AroundByMobileInput(): void { if (this.TouchCount == 1) { console.log(this.targetAngles); this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity; this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity; //Range. this.targetAngles.y = this.C...

来源: Laya_社区 发布时间: 20170714

992. 求ShuriKenParticle3D用法 [ 26%]

...timer.loop(300, null, function () {                     console.log('8: ' + self.particleSystem.aliveParticleCount);                 });             }         }     } } 执行结果一直为0, 请问这是什么问题? 是否有更详细一些...

来源: Laya_社区 发布时间: 20170605

993. 官方案例里摄像机绕物体旋转脚本的问题 [ 26%]

...in); } protected AroundByMobileInput(): void { if (this.TouchCount == 1) { console.log(this.targetAngles); this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity; this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity; //Range. this.targetAngles.y = this.C...

来源: Laya_社区 发布时间: 20190224

994. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...t: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.clear(); this._allAgent.forEach((agent) => { agent.destination = pos; let paths = agent.getCurrentPath(); if (paths.length >= 2) { let points: any = [] paths.forEach((point...

来源: Laya3.0_文档 发布时间: 20251010

995. laya.ui.ColorPicker_API3.0 [ 26%]

...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var colorPicket = new laya.ui.ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPicket 。 colorPicket.skin = "resource/ui/color.png";//设置 colorPicket 的皮肤。 colo...

来源: Laya3.0_api 发布时间: 20231115

996. laya.ui.ProgressBar_API3.0 [ 26%]

...0ms(毫秒)后,执行函数changeValue。 } function changeValue() { console.log("改变进度条的进度值。"); progressBar.value = 0.6; } function onChange(value) { console.log("进度发生改变: value=" ,value); } example import ProgressBar = laya.ui.ProgressBar; import Handler = lay...

来源: Laya3.0_api 发布时间: 20231115

997. laya.ui.Radio_API3.0 [ 26%]

...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var button = new laya.ui.Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 button ,传入它的皮肤skin和标签label。 button.x =100;//设置 button ...

来源: Laya3.0_api 发布时间: 20231115

998. laya.ui.ComboBox_API3.0 [ 25%]

...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var comboBox = new laya.ui.ComboBox("resource/ui/button.png", "item0,item1,item2,item3,item4,item5");//创建一个 ComboBox 类的实例对象 comboBox ,传入它的皮肤和标签集。...

来源: Laya3.0_api 发布时间: 20231115

999. 缓存工具-layadcc · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...,reject)=>{ downloadBigFile(url, localfile, (total, now, speed) => { console.log(`downloading:${Math.floor((now / total) * 100)}`) return false;0 }, (curlret, httpret) => { if (curlret != 0 || httpret < 200 || httpret >= 300) { resolve(null); } else { resolve(localfile); } }, 10, 1000...

来源: Laya3.0_文档 发布时间: 20251010

1000. 【简单跑酷--JS版】---Lv.3 添加地板 [ 23%]

...type var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); //添加背景 var bg = new Background(); this.addChild(bg); //添加地板集合 var mapFloor = new MapFloor(); this.addChild(mapFloor); } })(); 前期工作都做好了~~ 接下来就是把地...

来源: Laya_社区 发布时间: 20160728