大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0106 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 as3 ,LayaAir下调试matter.js物理引擎出错。 LayaAir 3D 有提供 3D 物理引擎功能吗? 启动引擎报错 mPlugin.game_plugin_init(3); 问题状态 最新活动: 2017-04-01 11:01 浏览: 4976...
来源: Laya_社区 发布时间: 20170304
... view: Matrix4x4 视图矩阵。 world: Matrix4x4 世界矩阵,可设置为null。 out: Vector3 输出向量。 Returns void Globals "laya/d3/math/Viewport" Viewport constructor height maxDepth minDepth width x y _tempViewport cloneTo project set unprojectFromMat unprojectFromWVP Legend Class Class ...
来源: Laya3.0_api 发布时间: 20231115
...如果加载成功,则回调参数值为加载完成的资源,否则为null;2. url为数组类型,指定了一组要加载的资源,如果全部加载成功,则回调参数值为true,否则为false。 对于粗体字,不是很理解,希望回答时也能解释一下。 感谢回答...
来源: Laya_社区 发布时间: 20170804
...片,那么就会产生2400个drawcall container.addChild(role2); } }), null, Loader.ATLAS); 注意 我清楚 为什么 role2.loadImage('image.png');用了这句话之后 会产生2400个drawcall(因为图集交叉渲染了) 这个不用再和我解释了 请看清楚我不明白的点是: 1....
来源: Laya_社区 发布时间: 20180122
...ype: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResComplete() { //背景颜色 Laya.stage.bgColor = "#ffffff"; // var bgs = new laya.display.Sprite(); // bgs.loadImage("res/bg.png"); //Laya.stage.addChild(bgs); //Laya.stage.addChild(n...
来源: Laya_社区 发布时间: 20170228
...D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将模型加到场景上 var layaMonkey:Sprite3D = scene.addChild(sp) as Sprite3D; })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像...
来源: Laya2.0_文档 发布时间: 20210715
...; } else{ Laya.init(1024, 1024); } //等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一...
来源: Laya_社区 发布时间: 20180224
...gt;{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button....
来源: Laya3.0_文档 发布时间: 20230303
...ya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "渲染目标")); changeActionButton.size(160, 40); changeActionButton.labelBold = true; changeActionButto...
来源: Laya_示例 发布时间: 20260303
...------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20161221