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

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

991. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 52%]

..."res/threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponen...

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

992. 使用Laya.loader.load加载服务上的图片资源,为什么会停顿几秒中才显示 [ 52%]

...几秒中才显示 Laya.loader.load("http://www.xxxxxxx.com/gold.png",Laya.Handler.create(this,this.aa)); private aa(){ let img = new Laya.Image("http://www.xxxxxxx.com/gold.png"); Laya.stage.addChild(img); } 请问下,这样写有声明不对么 ? 2018-04-18 添加评论 免费帖 --> 分...

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

993. laya.ui.Tree [ 52%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...

来源: Laya2.0_api 发布时间: 20190513

994. 加载时间轴动画报错 [ 52%]

...ni = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animat...

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

995. 加载不同域名下的单个图片 会重复加载两次,导致无法显示 [ 52%]

....base_image_url+"image/loading.jpg", ]; Laya.loader.load(_silentLoadArray, Handler.create(this, gameStart));   var gameStart = function(){     var loading = new LoadingPage();(loading页面)     //加载完成 进入主界面     loading.onComplete = loadHome;     //开始加载     l...

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

996. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 52%]

...; item.progress = 0; totalSize += item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, p...

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

997. 分享:如何使用IDE创建的动画.ani文件进行显示! [ 52%]

...载动画需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);/...

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

998. 微信小游戏中iPhoneX的适配问题 [ 52%]

...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018...

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

999. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 52%]

...F/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机         let ca...

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

1000. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 52%]

...源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程...

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