大约有 2,654 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2024) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(82) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(47)
...到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 marievent_gf 赞同来自: cuixueying 、q12647 找到layaflash类库 C:\Users\Administrator\AppData\Local\LayaFlash\tools\lib2.6\libs\iflash\src\iflash\events\EventManager.as 找到方法 public function acceptSystemMouseEv...
来源: Laya_社区 发布时间: 20160831
...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_示例 发布时间: 20251209
...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH ...
来源: Laya_示例 发布时间: 20251209
...alDialog: NormalDialog; constructor() { super(); this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") }); } showDialog(context: string) { // if (this.normalD...
来源: Laya_社区 发布时间: 20181216
...ask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask; addEventListener(Event.ENTER_FRAME,function():void { mask.x++; mask.cacheAsBitmap=true; sp.cacheAsBitmap=true; }); ``` **LayaAir引擎中正确的用法示例:** ```java Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphi...
来源: Laya2.0_文档 发布时间: 20191206
...ask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask; addEventListener(Event.ENTER_FRAME,function():void { mask.x++; mask.cacheAsBitmap=true; sp.cacheAsBitmap=true; }); ``` **LayaAir引擎中正确的用法示例:** ```java Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphi...
来源: Laya2.0_文档 发布时间: 20210714
...var staticMesh = scene.addChild(new Laya.Sprite3D()); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.meshFilter.sharedMesh; mesh.once(Laya.Event.LOADED, nul...
来源: Laya_社区 发布时间: 20161021
...earReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addEvent destroy duration event hasListener hermiteCurveSplineWeight isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Object literals tween Constructors constructor new AnimationClip2D(): AnimationClip2D Ov...
来源: Laya3.0_api 发布时间: 20231115
移除鼠标事件 btn.on(Event.MOUSE_MOVE, this, onMouseMove); 如何移除btn的该鼠标事件 2017-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: on用来侦听事件,off用...
来源: Laya_社区 发布时间: 20170623
如何代码触发layaCanvas的mouseDown事件 在laya.events.MouseManager中layaCanvas有mouseDown事件的监听,现在我在使用fairyUI中使用list.displayObject.event(Event.MOUSE_DOWN),在MouseManager的监听里收不到。想知道怎么用代码达到鼠标点击的效果 2020-04-13 ...
来源: Laya_社区 发布时间: 20200413