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

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

191. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 49%]

... unclepi 赞同来自: 我设置的一个 240x240的动画,代码如下_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBir...

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

192. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 41%]

...有关于Skeleton动画的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=i...

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

193. getimagedata直接调用无法获取有效像素问题 [ 39%]

...计问题。 而在调用了 texture的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-...

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

194. 关于UI与3D场景的问题 [ 39%]

... ele 根节点 *@param touchID touchID *@param isLeft 是否为左键 */ __proto.onMouseUp=function(ele,touchID,isLeft){ (isLeft===void 0)&& (isLeft=false); if (!this.enable) return; var preO; var tO; var arrs; var oldArr; var i=0,len=0; var tar; var sendArr; var onMobile=Browser.onMobile; a...

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

195. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 38%]

...ngMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 var allLights = []; allLights = allLights.concat(scene._directionLights._elements); allL...

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

196. 微信小游戏加载资源问题 [ 19%]

...ingContext2D = function () { }; MiniAdpter.window.CanvasRenderingContext2D.prototype = MiniAdpter.window.wx.createCanvas().getContext('2d').__proto__; MiniAdpter.window.document.body.appendChild = function () { }; MiniAdpter.EnvConfig.pixelRatioInt = 0; Laya.Browser["_pixelRatio"] = MiniAd...

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