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

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

81. 怎么裁剪一张图片 [ 75%]

... <code>Texture</code> 对象。          * @param   source 绘图资源 img 或者 Texture 对象。          * @param   x 起始绝对坐标 x 。          * @param   y 起始绝对坐标 y 。          * @param   width 宽绝对值。    ...

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

82. 请问给List里的item赋值,多层节点怎么赋值 [ 75%]

请问给List里的item赋值,多层节点怎么赋值 source_arr.push({ // "mycircle/goods_img_img": { // skin: gameMain.userManager.goods_img // }, mycircle: { goods_img_img: { skin: gameMain.userManager.goods_img } } }); //source_arr是数据源数组,比如想给名为“mycircle”的sprit...

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

83. laya.ui.AutoBitmap [ 75%]

...,4,0,4,0,1为垂直3宫格,3宫格性能比9宫格高。 AutoBitmap  source : Texture 对象的纹理资源。 AutoBitmap  width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By...

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

84. 发布为微信小游戏,加载字体失败 [ 74%]

...mage.onload (http://127.0.0.1:53804/game/code.js:21213:15)     at Image._source._source.onload (http://127.0.0.1:53804/game/code.js:20175:11)  附件 : --> test31.zip 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

85. Laya.loader.load加载位图字体 [ 74%]

...l后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 !this._data             if (!data._source){                 this._data=data;           ...

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

86. laya.d3.resource.TextureCube [ 74%]

... No Frames TextureCubeProperties | Methods | Constants Packagelaya.d3.resourceClasspublic class TextureCubeInheritanceTextureCube BaseTexture laya.resource.Bitmap TextureCube 类用于生成立方体纹理。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Pro...

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

87. import Event = laya.events.Event; 报错 [ 74%]

...'Import declaration conflicts with local declaration of 'Event'' at: '5,1' source: 'ts' 项目中没有其他地方写这个import, 但这个地方说定义重复 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

88. 缓存清除方法clearTextureRes [ 74%]

...Render.isConchApp){                     if (res.bitmap.source.releaseTexture){                         res.bitmap.source.releaseTexture();                     }                     }else if (res.bitmap._atlaser==null...

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

89. 使用Layaair调试播放MP3报错 [ 74%]

...是会出错。 Error: DOMException: Failed to load because no supported source was found.  Error: DOMException: The element has no supported sources. at AudioSound._makeMusicOK (file:///D:/%E9%A1%B9%E7%9B%AE/%E6%B1%A4%E8%BF%9C%E5%8D%8E/diablo/bin/libs/laya.core.js:14242:26) 2018-11-11 添加评论...

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

90. 在画布上播放video问题的思路 [ 74%]

...r htmlCanvas:HTMLCanvas = HTMLCanvas.create(HTMLCanvas.TYPE2D); htmlCanvas.source.width = 100; htmlCanvas.source.height = 100; htmlCanvas.size(100, 100); // 在单独的画布上绘制矩形。 htmlCanvas.getContext("2d").fillStyle = "#FFFF00"; htmlCanvas.getContext("2d").fillRect(20, 20, 60, 60); /...

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