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

大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)

2411. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 50%]

...o.send = function (url, data, method, responseType, headers) { (method === void 0) && (method = "get"); (responseType === void 0) && (responseType = "text"); _super.prototype.send.call(this, url, data, method, responseType, headers); this._http.upload.onprogress = function (e) { } this._http.upload....

来源: Laya2.0_文档 发布时间: 20210714

2412. websocket连接, ws 时没问题,改成 wss 没反应 [ 50%]

...t.ERROR, this, this.errorHandler); private openHandler(event: any = null): void  {     //正确建立连接;     this.gameInfo.info("Connected !");  // 显示已经连接 } 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

2413. 代码2.0.2版本Laya.Animator发现play方法的存在BUG [ 50%]

...同来自: 正确的写法:   override protected function _onEnable():void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (c...

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

2414. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 50%]

... = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会报错。 请问现在怎么样才能将htmlcanvas 的东西 显示在texture上?   附件已...

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

2415. 开关页面导致内存一直增长 [ 50%]

...ya.Loader.clearTextureRes(url);   比如这个页面的关闭  Close(): void {         IconManager.Instance().clearTexture(this.leftverticaldrawing.skin);//清理某个动态贴图的资源(clearRes方法清理png)         IconManager.Instance().clearTexture(this.rightvertica...

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

2416. 在layaair中如何用JS调用As的方法? [ 50%]

...ne.login.LoginScene,里面有一个方法 public function callback1(d:*):void,要调用这个分方法在JS里要怎么写, 是Laya.LoginScene.callback1(dataObj)这样吗? 2017-02-07 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你这个问题再群里应该解决了,有问题再...

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

2417. 关于2D粒子的渲染问题 [ 50%]

...de function addParticleArray(position:Float32Array, velocity:Float32Array):void {   中,把所有的参数放到一个数组中:        var particleData:ParticleData = ParticleData.Create(settings, position, velocity, _currentTime);       var startIndex:int = _firstFreeElement * _floatCo...

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

2418. Spine动画烘焙插件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...//组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //加载预制体文件 Laya.loader.load("resources/spine3.8/boy/spineboy-pma_bake.lh").then((res) => { // 创建预制体 let spineboy: Laya.Sprite = res.create(); // 获取Spine2DRenderNode组件 let spine2dRender...

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

2419. 如何使用TS的命名空间(namespace)? [ 50%]

.../doSomething }; export interface ICommand{ excute(type:string, params:any):void; } }   2019-09-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****180 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最...

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

2420. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 50%]

...Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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