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

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

381. 射线检测-射线检测 [ 68%]

...s/threeDimen/skinModel/PangZi/PangZi-doubipangzi.lm"], Laya.Handler.create(this, onComplete)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.a...

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

382. Laya.loader.create 进度回调函数执行两次!!! [ 68%]

...数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.52519...

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

383. 如何启用摇一摇 [ 68%]

...r_yao1yao=(function(){ function Controller_yao1yao(model){ /*__JS__ */var _this=this; /*__JS__ */_model=model; /*__JS__ */var SHAKE_THRESHOLD=100; /*__JS__ */var last_update=0; /*__JS__ */var x=y=z=last_x=last_y=last_z=0;; /*__JS__ */var canShake=1; /*__JS__ */if (window.DeviceMotionEvent){window.ad...

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

384. android旋转屏幕 半边黑屏 [ 67%]

..."; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage....

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

385. 我竟然被射线检测这个小功能给难了一天了 [ 67%]

...esult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChild...

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

386. _calculateCacheRect函数有bug [ 67%]

...ps laya1应该也有这个问题。)    reset() {             this.releaseContext();             this.releaseFilterCache();             this.cacheAs = "none";             this.enableCanvasRender = false;             this.userSetCache = "none";             thi...

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

387. 怎样访问box里面的label [ 67%]

...: 与内容相关的链接 提交 2 个回复 wudi199553 赞同来自:  this.TestLablel.text = "......."; 2017-12-18 0 0 分享 微博 QZONE 微信 binhuawei 赞同来自: 好的 谢谢 2017-12-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定...

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

388. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 67%]

...in_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 ...

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

389. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 67%]

... onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.ad...

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

390. 封装类的时候 怎么在类中表示自身? [ 67%]

...ng"); // Laya.stage.addChild(box); bg1.loadImage("../bin/background.png"); this.addChild(bg1); bg2.loadImage("../bin/background.png"); bg2.pos(0,-852); this.addChild(bg2); 用this.addchild老是出错 2016-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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