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

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

231. laya.d3.core.material.WaterPrimaryMaterial [ 57%]

... BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...

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

232. laya.ui.Image [ 57%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对象...

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

233. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 56%]

...xport class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json";         private ROBOT_TEXTURE_PATH: string = "res/swf/star.png";         constructor() {             // Laya.ini...

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

234. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 56%]

...化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过dat...

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

235. laya.d3.core.pixelLine.PixelLineMaterial [ 56%]

... BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...

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

236. 微信小游戏中不能加载proto文件 [ 55%]

...reate a new message var message = AwesomeMessage.create( { openid: "AwesomeString" });  console.log(message.openid) // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errMsg) throw Error(errMsg);  // Encode a message to an...

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

237. scaleMode 用法 [ 55%]

...LE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ public static const SCALE_FIXED_AUTO:String = "fixedauto";

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

238. laya.d3.core.material.SkyProceduralMaterial [ 55%]

... BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...

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

239. 疑似clearRes内存泄漏问题 [ 54%]

...所占用的内存怎么释放? 尔东 • 2019-03-08 10:47 clearRes(url:String):void [static] 清理指定资源地址的缓存。 尔东 • 2019-03-08 10:20 请不要轻易锁定帖子可以吗,我们的需求是自己使用计数引用自己管理资源释放,而不是使用destroyUnusedRe...

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

240. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 54%]

...代码如下: ```typescript // 程序入口 class MaskDemo{ private Res:string; private img:Laya.Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成...

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