大约有 1,246 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(924) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(45) laya_api(2) Laya2.0_api(2)
... const Templet = Laya.Templet, Event = Laya.Event; let mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]); mFactory.on(Event.ERROR, this, this.onError); ...
来源: Laya_社区 发布时间: 20190730
[LayaAir3]Laya.Slider 的结束拖拽的事件监听 怎么写, Laya.Event.MOUSE_UP)不好使,Laya.Event.MOUSE_UP只有在滑动块上原地点击抬起就会执行,当我拖动滑动块松开鼠标后,就不会触发 2025-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20250709
...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换...
来源: Laya2.0_示例 发布时间: 20260303
...Url("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); 以上代码,host传...
来源: Laya_社区 发布时间: 20180312
...LE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.Construct(); this.eventListener(); } Construct() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponentIntance(rigidbody); let chainCollider = gr...
来源: Laya2.0_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var GlowFilter = Laya.GlowFilter; var Loader = Laya.Loader; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mArmature; ...
来源: Laya_示例 发布时间: 20260303
...接 this.socket.connectByUrl("ws://45.78.**.**:3000"); this.socket.on(Laya.Event.OPEN, this, openHandler); this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event)...
来源: Laya_社区 发布时间: 20180125
...wTest(); //testUI.addChildAt(vhvt, 0); testUI.addChild(vhvt); vhvt.on(laya.events.Event.CLICK, this, (event: Laya.Event) => { console.log("为什么这里不进来"); }); } /** * ViewHeadViewTest */ class ViewHeadViewTest extends Laya.Sprite { constructor() { super(); ...
来源: Laya_社区 发布时间: 20170822
..._initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没有了 -- currentCamera 2017-02-18 添加...
来源: Laya_社区 发布时间: 20170218