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

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

41. layaAir2.0动效模板报错Uncaught Can not find class ui.aniTemplates.bigToSmallUI [ 63%]

... btCollisionObject undefined 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2019-02-20 16:50 浏览: 3718 关注: 10 人 Ex木 • 2019-02-24 20:32 我也遇到相同的问题了,试了好几种方法都不行,我暂时挂起吧 cwugs • 2019-03-19 14:17 这...

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

42. Tween 缓动过程有触发回调函数么 [ 62%]

...动回收到对象池。 * @return 返回Tween对象。 */ public static function to(target:*, props:Object, duration:int, ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false, autoRecover:Boolean = true):Tween { return Pool.getItemByClass("tween", Tween)._create...

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

43. zip更新模式缓存是怎么读取的?? [ 61%]

...因为在实际使用的时候还是会下载 * 'unknownError' * @param {function(localfile:string):void} onEnd 更新完成的回调 */ window['updateByZip'] =function(url, onEvent, onEnd){ let cachePath = conch.getCachePath(); let localfile = cachePath+url.substr(url.lastIndexOf('/')); /** * 下...

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

44. ios safari横屏下,鼠标点击不正确,且旋转屏幕时显示错位 [ 60%]

...后的laya.core.js,先定位到21176行window.addEventListener("resize",function(){ setTimeout(function(){ var orientation=Browser.window.orientation; if (orientation !=null && orientation !=_$this._previousOrientation && _me._isInputting()){ Input["inputElement"].target.focus=fals...

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

45. 分享:关于自定义场景继承的实现 [ 59%]

...from "../script/base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Custo...

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

46. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 59%]

...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...

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

47. 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' [ 58%]

...Array的zlib.min.js后报错 导微信小程序报错window.focus is not a function IDE通过.ui自动生成的ui代码报错 本地调试加载本地图片都报错 小游戏项目 加载有中文的json文件 报错 官网示例摇一摇报错,就解决方案 启动引擎报错 mPlugin.game_plug...

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

48. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 57%]

..._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光裁剪的场景调用 LightCullingMask.enableLightCullingMask(scene3d)即可 //注意 ExtCullingMask并不是针对对象进行,而是对摄相...

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

49. 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! [ 56%]

...    image.src = "res/atlas/pixel.png";         image.onload = function()         {             // 界面上按钮所在的位置以及按钮的宽高             drawImage(image, 462, 194, 156, 48, 0); // 调用绘图以及 挖洞         }    ...

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

50. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 56%]

...@cuixueying 感谢你上面做的回答 现在遇到以下的问题 public function drawImage(target:Sprite,srcbmd:Image, mx:Matrix, p1:Point, p2:Point, p3:Point, p4:Point):void         {             var texture:Texture = Laya.loader.getRes(srcbmd.skin);             target.gr...

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