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

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

311. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 88%]

...Complete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //...

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

312. 2.0如何射线检测 [ 88%]

...ya.PhysicsSimulation的成员函数,已经不是静态函数了,但是 new Laya.PhysicsSimulation(new Laya.PhysicsSettings());会报错,请问如何射线检测? 附件 : --> 2019-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

313. 文本-HTML文本 [ 88%]

...TML(); // 使用外部定义的html } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHTML = html; } function showExtern...

来源: Laya_示例 发布时间: 20251130

314. UI-ColorPicker [ 88%]

...SkinLoaded)); })(); function onColorPickerSkinLoaded() { var colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Handler(this, onChangeColor, [colorPicker]); Laya.stage.addChild(colorPicker); onCh...

来源: Laya_示例 发布时间: 20251130

315. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 88%]

...边、span标签内嵌的方式】 示例如下: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span style='font-weight:bold;" + "font:24px Arial' " + "color='red' " + "href='www.baidu.com'>" + "LayaBox</span><span>欢迎你的加入</span>" Laya.stage.addChil...

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

316. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 88%]

...        Laya.Stat.show();         this.scene = Laya.stage.addChild(new Laya.Scene3D());                  Laya.timer.loop(1, this, this.loopfun);     }     loopfun(){         this.lastT = Date.now();         let dis = 1;         if(!this.cubeP){             this...

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

317. UI-ProgressBar [ 88%]

...ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width ) / 2; this.progressBar.y = Laya.stage.height / 2...

来源: Laya2.0_示例 发布时间: 20251130

318. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 88%]

...Complete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //...

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

319. Image.loadImage 方法加载问题 [ 88%]

...两个 但是三个同样的图片没问题     this.publicSpaceList = new Laya.List(); this.publicSpaceList.itemRender = gamepublicspaceitem.PublicSpaceItem; this.publicSpaceList.repeatX = 1; this.publicSpaceList.repeatY = 3; this.publicSpaceList.spaceY = 0; // this.publicSpaceList.x = 22; this.p...

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

320. 游戏加载进度失效 [ 88%]

....stage.alignV = "middle"; Laya.stage.bgColor = "#ffffff"; this.gameLoading=new ui.GameLoadingUI(); //创建加载进度文本 var asset = [] asset[0] = { url: "res/atlas/run.json", type: Laya.Loader.ATLAS } asset[1] = { url: "res/bg.png", type: Laya.Loader.IMAGE } asset[2] = { url: "res/bg1.png", ty...

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