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

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

91. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 87%]

...nction() { var Skeleton = Laya.Skeleton; var Templet  = Laya.Templet; var Event    = Laya.Event; var Browser  = Laya.Browser; var Stat     = Laya.Stat; var WebGL    = Laya.WebGL; var Pool     = Laya.Pool;   var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionInd...

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

92. laya拖拽在部分机型(一部XR)StageX不对 [ 87%]

...部分机型(一部XR)StageX不对 //注册事件  Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent);  Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseE...

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

93. laya.utils.TimeLine_API3.0 [ 87%]

... TimeLine TimeLine 是一个用来创建时间轴动画的类。 Hierarchy EventDispatcher TimeLine Index Properties scale Accessors total Methods addLabel destroy event from gotoLabel gotoTime hasListener off offAll offAllCaller on once pause play removeLabel reset resume to from to Properties scal...

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

94. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 87%]

...stage.bgColor = "#000000"; this.ps = new Laya.Sprite(); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.down2) Laya.stage.on(Laya.Event.MOUSE_UP, this, this.up2) Laya.stage.addChild(this.ps); } down2() { this.a = Laya.stage.mouseX; this.b = Laya.stage.mouseY; console.log("鼠标点击的点" + this....

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

95. 如何与服务端建立连接 [ 86%]

...t + ":" + port; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代...

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

96. laya.resource.Resource_API3.0 [ 86%]

...ce/Resource" Resource Class Resource Resource 资源存取类。 Hierarchy EventDispatcher Resource BaseTexture BaseShader TextTexture HTMLCanvas BitmapFont Prefab Material Mesh Texture AtlasResource AnimationClip AnimatorController AnimationClip2D AnimatorController2D TextResource AnimationTemplet ...

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

97. laya.physics.Physics_API3.0 [ 86%]

...hysics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Properties box2d positionIterations velocityIterations world PIXEL_RATIO Accessors allowSleeping gravity worldRoot I Methods event getBodyCount getContactCount getJointCo...

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

98. Dialog关闭时如何向open他的页面传值? [ 86%]

...前点击的是哪个按钮,抛出具体的事件并监听。 myClose.on(Event.CLICK,this,onClicks); myYes.on(Event.CLICK,this,onClicks); myNo.on(Event.CLICK,this,onClicks) } private function onClicks(e:Event):void { // TODO Auto Generated method stub if(e.target.name=="close") { open页面.event(...

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

99. tab 是否可以做到左右滑动切换view呢? [ 86%]

...-08-23 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: { this.on(laya.events.Event.MOUSE_DOWN ,this, this.onMouseDown);         this.on(laya.events.Event.MOUSE_UP ,this, this.onMouseUp);              }     private onMouseDownX : number;     private onMouseDownY : number;  ...

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

100. 加载-错误处理和进度 [ 86%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls = ["do not exist", "../../res/...

来源: Laya_示例 发布时间: 20251130