大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0114 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...
来源: Laya3.0_api 发布时间: 20231115
2.0版本的子域还需要初始化MiniAdpter吗? Laya.MiniAdpter.init(true,true); Laya.init(640,1136); 这样初始化,在opendata工程里会报错 Uncaught TypeError: Cannot read property 'init' of undefined at new Main (Main.ts:11) at Object.1../views/Rank (layaMaxUI.ts:1) at o (_prelude.j...
来源: Laya_社区 发布时间: 20181019
...xt/css' href='html/test.css'/> * * style支持的属性如下: * italic:true|false; 是否是斜体 * bold:true|false; 是否是粗体 * letter-spacing:10px; 字间距 * font-family:宋体; 字体 * font-size:20px; 字体大小 * font-weight:bold:none; 字体是否是粗体,功能同bold * colo...
来源: Laya3.0_文档 发布时间: 20230303
... override public function destroy(destroyChild:Boolean = true):void { if(effect3D != null){ effect3D.destroy(); effect3D = null; } super.destroy(true); ...
来源: Laya_社区 发布时间: 20180517
...itter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChild(sp); onAssetsLoaded(settings); }, 100); } })(); 这个例子 是不是说明 粒子有内存泄漏? 我不断new Particle2D 100ms后销毁该实例 我也调用了sp.desotry(true) 内存...
来源: Laya_社区 发布时间: 20170103
...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...
来源: Laya3.0_api 发布时间: 20231115
...不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化的时候将坐标放到屏幕右边 this.x = 852; //y坐标取一个随机值 为什么是32 因为我们的整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg ...
来源: Laya_社区 发布时间: 20160801
...: "", //不管资源是否改变了。都会重新发布图集。 "force": true, //对包含的图片文件的像素周围扩展一个不可见但是颜色值相同的像素。 "extrudeList": [ "" ], //指定必须包含的文件 "includeList": [ "" ], //指定不包含的文件 "excludeList": [ "" ...
来源: Laya_社区 发布时间: 20161201
...开调试面板(通过IDE设置调试模式,或者url地址增加debug=true参数,均可打开调试面板) if (GameConfig.debug || Laya.Utils.getQueryString("debug") == "true") Laya.enableDebugPanel(); if (GameConfig.stat) Laya.Stat.show(); Laya.alertGlobalError = true; //激活资源版本...
来源: Laya2.0_文档 发布时间: 20210715
...下, Shader3D Start { type:Shader3D, name:baseRender2D, enableInstancing:true, supportReflectionProbe:true, shaderType:2, uniformMap:{ u_gradientDirection: {type: Vector2, default:[1,1]}, // 渐变方向 u_gradientStartColor: {type:Vector4, default:[1,1,1,1]}, // 渐变起始颜色 u_gradientEndCo...
来源: Laya3.0_文档 发布时间: 20251120