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

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

1131. 类似抠图、挖空效果的实现 [ 64%]

...        box.hitArea = area;             box.mouseEnabled = true;             box.on("click", this, onBoxClick);                          //绘制黑色区域,不被抠图             var black:Sprite = new Sprite();             black.grap...

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

1132. 缓动-时间线 [ 64%]

...y:100, scaleX:1, scaleY:1, alpha:1}, 2000, null, 0); this.timeLine.play(0, true); this.timeLine.on(Event.COMPLETE, this, this.onComplete); this.timeLine.on(Event.LABEL, this, this.onLabel); } onComplete() { console.log("timeLine complete!!!!"); } onLabel(label) { console.log("LabelName:" + label); }...

来源: Laya2.0_示例 发布时间: 20241002

1133. laya.media.SoundManager_API3.0 [ 64%]

...c stopSound Properties Static autoReleaseSound autoReleaseSound: boolean = true Defined in laya/media/SoundManager.ts:90 音效播放后自动删除。 default true Static musicVolume musicVolume: number = 1 Defined in laya/media/SoundManager.ts:25 背景音乐音量。 default 1 Static playbackRate...

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

1134. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 64%]

... //打开调试面板(IDE设置调试模式,或者url地址增加debug=true参数,均可打开调试面板) if (GameConfig.debug || Utils.getQueryString("debug") == "true") Laya.enableDebugPanel(); if (GameConfig.stat) Stat.show(); Laya.alertGlobalError = true; //激活资源版本控制,...

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

1135. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 64%]

...this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture;...

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

1136. 官方案例里摄像机绕物体旋转脚本的问题 [ 64%]

... extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public target: Transform3D; public AroundPos: Vector3 = new Vector3(); /// <summary...

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

1137. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 64%]

...tion : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher.watch({}); //inspect可以多次调用,将多个数据组合在一个面板编辑 this._panel.inspect...

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

1138. 让 CylinderMesh 支持椎体 [ 64%]

...aration,this._numberVertices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._indexBuffer=new IndexBuffer3D(/*laya.d3.graphics.IndexBuffer3D.INDEXTYPE_USHORT*/"ushort",this._numberIndices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._vertexBuffer.setData(vertices); this._index...

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

1139. 在绘制扇形CD进度条时会在IOS上百分百出现绘制不完全的BUG(有必现Demo) [ 64%]

...odePowerProgressBg.skin = this.powerProgressWhiteSprite; this.isIncPower = true; return; } } console.log('===this.currentPower: ', this.currentPower); this.NodePowerProgressBar.graphics.clear(); //参数是否为true,都一样 this.NodePowerProgressBar.graphics.drawPie(100, 100, 100, 0, this.current...

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

1140. 打开新窗口被拦截,同样的方法用egret和其他h5工程都没有问题 [ 64%]

...quot;,a); var e = document.createEvent('MouseEvents'); e.initEvent('click',true,true); a.dispatchEvent(e); a.remove(); } </script> qian • 2018-03-21 14:00 直接附件上传一下项目可以么 kvs1205 • 2018-03-21 14:10 新建一个空项目,创建一个text,添加点击事件,把...

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