大约有 2,538 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0082 秒)
Laya_社区(1915) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getMaxHeight getMaxWidth getTextWidth hasListener isCreateFromURL off offAll offAllCaller on once parseFont destroyUnusedResources loadFont Constructors constructor new BitmapFont(): BitmapFont Overrides Resource.__cons...
来源: Laya3.0_api 发布时间: 20231115
...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
Laya.EventDispatcher off 删除侦听器 var eventDis = new Laya.EventDispatcher() eventDis.on('TEST_EVENT_DIS', this, someEventHandler, null) eventDis.off('TEST_EVENT_DIS', this, another_eventHandler, false) off 怎样才能 从 EventDispatcher 对象中删除侦听器? ...
来源: Laya_社区 发布时间: 20180914
...点击区域不生效了 package { import laya.display.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK...
来源: Laya_社区 发布时间: 20171226
...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
...过程,因此建立连接后,通常要注册以下事件监听器: Event.OPEN:连接成功建立后触发。 Event.MESSAGE:收到服务器发送的数据时触发。 Event.CLOSE:连接关闭时触发。 Event.ERROR:连接出错时触发。 示例代码: // 注册事件监听示例 th...
来源: Laya3.0_文档 发布时间: 20251010
...e _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy event getContext getMemSize getTexture hasListener isCreateFromURL off offAll offAllCaller on once release size toBase64 toBase64Async destroyUnusedResources Constructors constructor new HTMLCanvas(createCanvas?: boolean): HT...
来源: Laya3.0_api 发布时间: 20231115
...Index | Frames No Frames ShurikenParticleSystemProperties | Methods | Events Packagelaya.d3.core.particleShuriKenClasspublic class ShurikenParticleSystemInheritanceShurikenParticleSystem GeometryFilter EventDispatcher ObjectImplements IRenderable, laya.d3.core.IClone ShurikenParticleSystem 类...
来源: laya_api 发布时间: 20170929
...I DocumentationAll Packages | All Classes | Index | Frames No Frames EventDispatcherMethods Packagelaya.eventsClasspublic class EventDispatcherInheritanceEventDispatcher ObjectSubclasses Accelerator, AnimationPlayer, AnimationTransform3D, BaseRender, Component3D, GeometryFilter, Gyroscope, Ht...
来源: laya_api 发布时间: 20170929
[LayaAir3]Laya 3.2.0-beta.3 给UI添加点击事件Laya.Event.CLICK 第一次点击会触发两次 刚刷新进入界面直接点击UI元素才会触发两次,如果先点击旁边位置在点击只会触发一次,疑似聚焦问题。 PS:必须在移动端,或者浏览器模拟移动端触...
来源: Laya_社区 发布时间: 20240924