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

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

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

...计问题。 而在调用了 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

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

...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

493. 关于UI与3D场景的问题 [ 33%]

... 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

494. socket通讯返回数据 [ 31%]

...xecute 'send' on 'WebSocket': Still in CONNECTING state.     at Socket.__proto.send (file:///K:/laya/mylaya12/bin/libs/laya.core.js:13509:16)     at new Game (file:///K:/laya/mylaya12/bin/js/LayaSample.js:17:21)     at file:///K:/laya/mylaya12/bin/js/LayaSample.js:45:1     2018-02-11 添加...

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

495. 微信小游戏加载资源问题 [ 9%]

...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