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

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

1021. 单机游戏如何监听网络是否连接 [ 66%]

...了不进行消息通信,当网断的时候是不是会触发 socket.on(Event.CLOSE, this, onSocketClose);在onSocketClose函数里处理执行逻辑对吧? 问题二:因为对H5不是很了解,想问问有没有像APP一样,直接关闭的语句,比如NativeApplication.nativeApplication...

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

1022. laya.d3.core.MeshTerrainSprite3D [ 66%]

...| Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainMeshSprite3D 类用于创建网格。 Public Properties...

来源: Laya2.0_api 发布时间: 20190513

1023. Laya2.7版本 导出来的粒子特效有一个报错, 其他几个都没问题, 请教下这个特效是哪里有问题 [ 65%]

...js:32262)     at Loader._onHierarchylhLoaded (laya.d3.js:32277)     at EventHandler.runWith (laya.core.js:1000)     at Loader.event (laya.core.js:1039)     at Loader.complete (laya.core.js:18862)     at Loader.onLoaded (laya.core.js:18818)     at EventHandler.runWith (laya.core.js:998) ...

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

1024. 同步龙骨插槽动画方案 [ 65%]

...is.mFactory = new Laya.Templet();         this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete, [aniMode]);         this.mFactory.loadAni(url);     }      private parseComplete(aniMode: number, fac: Laya.Templet): void {         this.mArmature ...

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

1025. 感觉实例之间是关联的,求指教。(已解决) [ 65%]

...ageName) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.Event.MOUSE_UP, this, this.hit); //this.img.on(Laya.Event.) } var _proto = Poker.prototype; _proto.show = function () { this.imag.y = 50; } _proto.hit = function () { if ( this.imag.y == 50) { this.imag.y = 150; } else if(thi...

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

1026. TimeLine调用destroy报错&执行完成后回到起点 [ 65%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this...

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

1027. Sprite optimizeScrollRect = true 似乎有问题 [ 65%]

...O_TOP ? this.height : 1; this.mask.addChild(this.content); this.content.on(Event.MOUSE_DOWN, this, this.onMouseDown); this.content.on(Event.MOUSE_WHEEL, this, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt...

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

1028. 我竟然被射线检测这个小功能给难了一天了 [ 65%]

...Sprite3D).transform.position) } onStart(): void {     Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya.stage.mouseX,L...

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

1029. 视频节点 · LayaAir3.0文档 · LAYABOX [ 65%]

...行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chro...

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

1030. laya.d3.core.material.PBRSpecularMaterial_API3.0 [ 65%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

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