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

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

691. 关于mouseThough=true的问题 [ 64%]

...ot;#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():voi...

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

692. AppStore提审被据 [ 64%]

AppStore提审被据 碰到这个描述:This app invokes the non-public selector "SimulateCrash". It would be appropriate to remove this selector use before resubmitting for review. 查了下,应该是libJavaScriptCore.a和libbmalloc.a包含了,这个如何解决呢? 2018-02-17 添加评论...

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

693. 限制区域拖动效果,为什么会无法限制呢? [ 64%]

...bGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.super(this)  var dragRegion; showDragRegion(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag)  function showDragRegion() { //拖动限制区...

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

694. Laya.loader.load 教程代码出错 [ 64%]

...      }             Laya.loader.load(arr,Handler.create(this,LoadComplated));         }         private function LoadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnImgClick);...

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

695. 使用音频 · LayaAir3.0文档 · LAYABOX [ 64%]

...去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… Copyright ©Layabox 2022 all right reserved,powered by LayaAir E...

来源: Laya3.0_文档 发布时间: 20230718

696. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 64%]

...Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; this.sprite3D = scene.addChild(new Laya.Sprite3D()) as Laya.Sprite3D; //正方体 var box = this.sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane())) as Laya.MeshSprite3D; this.box = box; box.transform.p...

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

697. 无法触发浏览器文件上传框 [ 64%]

...'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = ne...

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

698. 使用loadImage加载一个图片后的点击事件 [ 64%]

...age.addChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){         ape.on(Laya.Event.CLICK, this, function(){         console.log(111)     }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完...

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

699. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 64%]

...样的。你这样调整下就行了: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.zOrder ...

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

700. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 64%]

...个位图字体教程的代码应该放在哪里,怎么引用,其中的this是指? 我自建了单独的文件,并在Main里import了它,输出看是undefined。   5.几处的路径不一致,它们的关系是?  a.如图:把test_0.png名字改为test.png,保证跟fnt文件同名。...

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