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

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

391. Laya.Animator没有动画播放完事件 [ 53%]

...vent.COMPLETE,this,this.onAniComplete);但 Laya.Animator跟本没有继承EventDispatcher, 根本没有on函数啊, 我看了laya.d3.js,  播放完什么都没做,只调用了script.onStateExit if ((!islooping && elapsedPlaybackTime >=clipDuration)){ playState._finish=true; playState._...

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

392. 网络通信 · LayaAir3文档 · LAYABOX [ 51%]

....1.4 在代码中怎么使用 LayaAir引擎中用 HttpRequest 继承的是 EventDispatcher,具有事件派发的功能。加上本身具备发送请求的功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest =...

来源: Laya3.0_文档 发布时间: 20250104

393. Laya1.6.2发布flash版本 [ 51%]

.../AS3/2006/builtin::call() at laya.utils::Handler/runWith() at laya.events::EventDispatcher/event() at laya.resource::Resource/completeCreate() at laya.webgl.resource::WebGLCharImage/recreateResource() at laya.resource::Resource/activeResource() at laya.resource::Texture/active() at laya.webgl.text::...

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

394. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...逻辑处理。 2.1 支持的事件类型 LayaAir中的HttpRequest继承自EventDispatcher,因此支持多种事件类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完...

来源: Laya3.0_文档 发布时间: 20250214

395. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 43%]

...个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*...

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

396. 微信小游戏加载资源问题 [ 41%]

...dio) return 1; return this._audio.volume; } } class MiniSound extends Laya.EventDispatcher { constructor() { super(); this.loaded = false; } static _createSound() { MiniSound._id++; return MiniAdpter.window.wx.createInnerAudioContext(); } load(url) { if (!MiniFileMgr.isLocalNativeFile(url)) { url = ...

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

397. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 36%]

...** 基于pomelo网络握手通讯*/     export class Socket extends Laya.EventDispatcher {         private pomelo: Pomelo;         private mDecorate:Decorate;//装饰器         private mHost: string;         private mPort: number;         private mConnected: boolean;       ...

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

398. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 36%]

...类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; protected _enable: boo...

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

399. laya.ui.CheckBox_API3.0 [ 32%]

...tring, data?: any): boolean Implementation of ISelect.event Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,......

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

400. laya.ui.TextArea_API3.0 [ 30%]

...Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,......

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