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

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

861. HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用 [ 69%]

...作用 var scene = Laya.stage.addChild(new Laya.Scene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什么区别?...

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

862. graphics drawPath drawLine 鼠标 画笔 画线 锯齿 [ 69%]

graphics drawPath drawLine 鼠标 画笔 画线 锯齿 mouseMove(e:Laya.Event){ /**/ var p:Laya.Point=this.startPoint; this.cls.graphics.drawPath(0,0,[ ["moveTo", p.x,p.y], ["lineTo", e.stageX,e.stageY] ],null,{strokeStyle:"#ff0000",lineWidth:15,lineJoin:"round",lineCap:"round"}); //*/ //this.cls.g...

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

863. 关于.sk文件加载问题 [ 69%]

...的链接 提交 2 个回复 cuixueying 赞同来自: 为其添加tem.on(Event.COMPLETE,this,onCom);事件即可! 2017-09-12 0 0 分享 微博 QZONE 微信 shimp 赞同来自: 能详细一点吗?tem是哪个对象,我需要所有的都加载完成,谢谢 我的代码是 private  loadSk{ thi...

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

864. laya.d3.core.light.SpotLight [ 69%]

...l Classes | Index | Frames No Frames SpotLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class SpotLightInheritanceSpotLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object SpotLight 类用于创建聚光。 Public Properties Hide Inherited ...

来源: laya_api 发布时间: 20170929

865. Image加载完成后的图片大小重设问题 [ 69%]

...Laya.Handler.create(this,this.onComplete));         Laya.stage.on(Laya.Event.RESIZE,this,this.onResize);     }     onComplete():void     {         this.onResize();     }     onResize():void{         this.bg_img.width = Laya.stage.width;         this.bg_img.height = Laya.sta...

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

866. laya.device.motion.RotationInfo [ 69%]

... 关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 需要注意的是,IOS环境下,该值始终为false。即使如此,你依旧可以从alpha中取得正确的值。 RotationInfo  alpha : Number Z轴旋转角度,其值...

来源: laya_api 发布时间: 20170929

867. laya.d3.core.light.LightSprite [ 69%]

...Classes | Index | Frames No Frames LightSpriteProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创建灯光的父类。 Public Pr...

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

868. IOS真机下监听MOUSE_MOVE事件会报错 [ 69%]

...his.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错:   附件 : --> 2017-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

869. unity制作的粒子特效加载失败 [ 69%]

...(laya.d3.js:22407)     at ResInfo.onLoaded (laya.core.js:12995)     at EventHandler.__proto.runWith (laya.core.js:711)     at ResInfo.__proto.event (laya.core.js:483)     at LoaderManager.__proto._endLoad (laya.core.js:13152)     at Loader.onLoaded (laya.core.js:13128)     at EventHandle...

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

870. 骨骼Label事件,多接收一次 [ 69%]

骨骼Label事件,多接收一次 看了骨骼里的事件数据eventAniArr只有一次,但我函数却收到了2次回调 附件 : --> 2018-03-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来...

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