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

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

411. LayaAirIDE升级到1.7.22beta1后发生附加脚本问题 [ 82%]

...题。最好可以附上demo 2018-10-25 0 1 分享 微博 QZONE 微信 S_eVent 赞同来自: 目前回退回1.7.20版本可以解决此问题,1.7.21和1.7.22均存在此问题,未升级到正式版的1.7.21beta版本不会出现此问题 2018-10-26 0 1 分享 微博 QZONE 微信 为什么被折...

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

412. Native1.0.1 无法连接wss [ 82%]

...a.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERROR, this, this.onConnectFail); this.socket.on(Laya.Event.MESSAGE, this, this.onReceive); this.so...

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

413. 文字在框内滑动、滚动文本 [ 82%]

...lor="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){     this.prevX = this.txt.mouseX;     this.prevY = this.txt.mouseY;     Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText);     Laya.sta...

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

414. 经验分享:如何控制龙骨动画的播放索引! [ 82%]

...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(8...

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

415. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 82%]

...;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event....

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

416. 小米手机三指点击后,后续获得的触摸点失效 [ 82%]

...效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", st...

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

417. laya.d3.component.physics.BoxCollider [ 82%]

...Classes | Index | Frames No Frames BoxColliderProperties | Methods | Events Packagelaya.d3.component.physicsClasspublic class BoxColliderInheritanceBoxCollider Collider Component3D EventDispatcher Object BoxCollider 类用于创建盒子碰撞器。 Public Properties Hide Inherited Public Pro...

来源: laya_api 发布时间: 20170929

418. laya.d3.component.physics.SphereCollider [ 82%]

...sses | Index | Frames No Frames SphereColliderProperties | Methods | Events Packagelaya.d3.component.physicsClasspublic class SphereColliderInheritanceSphereCollider Collider Component3D EventDispatcher Object SphereCollider 类用于创建球碰撞器。 Public Properties Hide Inherited Publ...

来源: laya_api 发布时间: 20170929

419. 2D物理-复合碰撞器 [ 82%]

...LE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); b...

来源: Laya2.0_示例 发布时间: 20251209

420. [LayaAirIDE3]2d相机打包后问题 [ 82%]

...     onAwake() {         this.createJoystick();         this.bindEvents();                 // 监听全局事件         Laya.stage.on("DIALOG_SHOW", this, this.disable);         Laya.stage.on("DIALOG_HIDE", this, this.enable);     }      onDestroy() {         // ...

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