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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)

361. laya.resource.VideoTexture_API3.0 [ 83%]

...tSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once videoPause videoPlay destroyUnusedResources Constructors constructor new VideoTexture(): VideoTexture Overrides BaseTexture.constructor Defin...

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

362. 怎么监听程序关闭事件啊?? [ 83%]

...现在想监听程序关闭事件(就是关闭laya工具),尝试用Event.BLUR和Event.FOCUS才发现是监听游览器的,然后我用了Event.CLOSE,Event.END也是不可以,请问下是调用哪个方法呢??? 附件 : --> 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...

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

363. 照相机-正交相机 [ 83%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(3, 3, 3); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 camera.convertScreenCoordToOrthographicCoord(pos, _trans...

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

364. Dialog中编辑的动画如何控制? [ 83%]

...链接 提交 1 个回复 cuixueying 赞同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick(...

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

365. socket与node服务端连不上?按照官方案例 [ 83%]

...接 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

366. swf预加载问题 [ 83%]

...会有问题。package util { import laya.ani.swf.MovieClip; import laya.events.Event; import laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private...

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

367. Sprite-容器 [ 83%]

...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_示例 发布时间: 20240930

368. 游戏从后台切换到前台的时候总是抛出异常 [ 83%]

...到前台的时候总是抛出异常 TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. at TypeError (native) at EventEmitter.<anonymous> (D:\DevTool\LayaAirIDE_1.5.4_beta\resources\electron.asar\renderer\override.js:234:14) at emitTwo (events.js...

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

369. laya.d3.component.animation.UVAnimations [ 83%]

...lasses | Index | Frames No Frames UVAnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class UVAnimationsInheritanceUVAnimations KeyframeAnimations Component3D EventDispatcher Object UVAnimations 类用于创建UV动画组件。 Public Properties Hide Inheri...

来源: laya_api 发布时间: 20170603

370. 循环监听按钮,如何进行传参和接受参数 [ 83%]

...' + i) as Laya.Image;               console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); }   按钮事件 private onBtnClick(event:Laya.Event): void {         let b = event.currentTarget as Laya.Image; console.log('onClickLevel > ' + b.skin); this.removeSelf(); Lay...

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