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

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

631. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 62%]

...ibs-end------- 完整重现代码如下: Laya3D.init(720, 1280, null, Laya.Handler.create(null, () => { Config3D.useCannonPhysics = true; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.screenMode = "none"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left";  let scene = Laya.stage.addChild(n...

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

632. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 62%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

633. Laya怎么使用雪碧图(spritesheet)? [ 62%]

...oader.BMD, size:1}; b.push(o1); b.push(o2); } App.loader.loadAssets(b, new Handler(onLoadAssetsComplete), new Handler(onProgress));好了,经过这些处理你就可以在项目中直接使用图集了,获取图片的方法跟mornUI一样,如果你是使用mornUI的话,就可以直接运行...

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

634. unity里导出的骨骼动画无法读取 [ 62%]

...下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();              Laya....

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

635. LayaNative端使用.ttf字体 [ 62%]

...Text; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr...

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

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

...,执行onLoaded回调方法 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.com...

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

637. 为什么Tiledmap总是显示于stage的图片之上? [ 62%]

...dMap/desert.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, completeHandler)); } private function completeHandler(e:*=null):void { createImage(); } 2017-02-24 1 0 分享 微博 QZONE 微信 hamletborn 赞同来自: 谢谢! 2017-02-24 0 0 分享 微博 QZONE 微信 为...

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

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

...en/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(...

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

639. Mesh网格-网格加载 [ 62%]

...Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class MeshLoad { public function MeshLoad() { Laya3D.init(0, 0, true); Laya.st...

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

640. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 62%]

...);   //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或...

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