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

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

3881. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 48%]

...状态下播放背景音乐无效的解决方案  SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); if(!url) return null; SoundManager._recoverWebAudio(); url=URL.formatURL(url); if (url!=Sou...

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

3882. 3D场景中背景无法透明,版本2.7.1 [ 48%]

...terial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

3883. 如何预加载shader [ 48%]

...ialDefine 材质宏定义值。          */         public function precompileShaderWithShaderDefine(publicDefine:int, spriteDefine:int, materialDefine:int):void {             withCompile(publicDefine, spriteDefine, materialDefine);         }   然后用这个接...

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

3884. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 48%]

...-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 用最新版的引擎function changeAction(){//debugger;    if(tActionID%2 == 0)    {        skeleton0.replaceSlotSkinName("head", "h1-tou5", "robotFolder/head");    }    else    {        skeleton0.replaceSlotSkinName...

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

3885. Main无法正常使用,找不到它的定义 [ 48%]

...ight:Number;         private var _oldY:Number;         private function onMuseHandler(type:Event,index:int):void         {             trace("type:" + type.type + "ddd--" + _list.scrollBar.value + "---index:" + index);             var curX:Number,curY:Number;   ...

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

3886. laya里的所有单例都没有初始值 [ 48%]

...内容相关的链接 提交 7 个回复 无所畏惧 赞同来自: public function Main() {                if (window["Laya3D"]) window["Laya3D"].init(GameConfig.width, GameConfig.height);             else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);  ...

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

3887. 截屏文件没有保存 [ 48%]

...if( window.conch ) { console.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byteLength + " " + width + " " + height); console.log(conch.getCachePath()+"/t...

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

3888. laya.display.Graphics_API3.0 [ 48%]

...tring, x?: number, y?: number, width?: number, height?: number, complete?: Function | null): void Defined in laya/display/Graphics.ts:443 加载并显示一个图片。 Parameters url: string 图片地址。 Default value x: number = 0 (可选)显示图片的x位置。 Default value y: number = ...

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

3889. laya.html.XMLIterator_API3.0 [ 48%]

...A_END CDATA_START COMMENT_END COMMENT_START Legend Object literal Variable Function Type alias Class Class with type parameter Static property Static method Enumeration Interface

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

3890. laya.physics.joint.PulleyJoint [ 48%]

...左上角位置偏移Method Detail_createJoint()methodoverride protected function _createJoint():voidMon May 13 2019, 03:09 PM +08:00

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