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

大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)

741. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 59%]

...数。 ```typescript //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ //获取到Meshsprite3d var cube:MeshSprite3D = scene.addChild(sp.getChildAt(0)) as MeshSprite3D; //获取刚体 var cubeRigid:Rigidbody3D = cube.getComponent(Rigidbody3D); }...

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

742. 资源路径问题 [ 59%]

...图片时加载不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

743. Laya的安卓二次开发主动调用js层,无法实现传回数据给js层 [ 59%]

...到微信的code数据,始终无法返回数据给Laya层。 方式1:m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello Laya!"); } catch(JSONException e) { e.printStackTrace(); } Log.d("Laya", "======准备...

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

744. TileMap有明显的bug [ 59%]

...Map(); tMap.createMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(2 * 64, 2 * 32)); 附件 : --> 2019-01-02 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 ...

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

745. 新手引导在ios浏览器表现异常 [ 59%]

...ideContainer.addChild(maskButton);             maskButton.clickHandler = new Laya.Handler(this, () => {                 if (button) {                     if (button instanceof Laya.Button) {                        ...

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

746. UI界面加载有哪些回调方法可用 [ 59%]

...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...

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

747. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 59%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { //设置猴子 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Qu...

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

748. 照相机-正交相机 [ 59%]

...ent; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class OrthographicCamera { /** * (pos.x pos.y) 屏幕位置 * pos.z 深度取值范围(-1,1); * */ private var pos:Vector3 = new Vector3(310, 500, 0); pr...

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

749. 报错,这不是个构造函数 "StartPage is not a constructor" [ 59%]

...Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage.addChild(GamePage); } })(); 2018-10-2...

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

750. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 59%]

...dMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect...

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