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

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

801. 改变Laya.stage.scaleMode的问题 [ 60%]

...下列方式监听视窗改变的事件。Laya.stage.on(Laya.Event.RESIZE,this,this.doResize.bind(this));  并且会在该事件(doResize)中改变 Laya.stage.scaleMode 的值。doResize () { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; }    但是我发现在onResize事件里面改变Laya.st...

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

802. typescipt在一定范围内加载图片按照等比排列 [ 60%]

...omp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('img') as Laya.Ima...

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

803. drawTexture 画出来的数据会有以前的数据 [ 60%]

...th = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.g...

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

804. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 60%]

...));                     effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){                         var particle = effect.getChildAt(0).getChildAt(0).particleSystem;                         particle.on(Laya.Event.COMPLETE, this, function(){             ...

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

805. laya.display.Node [ 60%]

...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。  method:Function — 结束时的回调方法。 contains()method  public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...

来源: laya_api 发布时间: 20170929

806. laya.d3.core.Sprite3D_API3.0 [ 60%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(node: Node): boolean Inherited from Node....

来源: Laya3.0_api 发布时间: 20231115

807. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 60%]

... - Out of bounds var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/...

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

808. 用IDE编辑器编辑好label,想弄点击文字变色功能,发现有问题 [ 60%]

...过测试都不知道是什么问题。以下是测试的简单代码: this.a6.on("click",this,onB);function onB(e) { etg = e.target; etg.color = "#ff0000"; } 2016-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

809. 键盘事件监听时间间隔问题 [ 60%]

...什么问题要如何解决呢?谢谢! Laya.stage.on(Event.KEY_DOWN, this, this.onKeyDown);   // 回调时间时隔 move right1: characterX: 200, currTime: 1486458463.82 move right1: characterX: 204, currTime: 1486458464.338 move right1: characterX: 208, currTime: 1486458464.357 move right1: ch...

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

810. [TMA][ERROR][RUNTIME] thirdScriptError undefined;at api readFile success callback function [ 60%]

...ime照着视频做运行不了,求解 调用动画结束on方法,报错this.zombieAnimator.on is not a function 请问官方API中有反余弦的方法吗? 问题状态 最新活动: 2020-01-09 18:28 浏览: 1298 关注: 3 人 L。 • 2020-06-11 18:28 请问一下这是官方回答吗?我...

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