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

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

761. 关于graphics.drawPath手机端和PC端不一致的问题 [ 66%]

... Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage....

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

762. AS转换JS运行报错 [ 66%]

...4 0 3 分享 微博 QZONE 微信 kevinchen2046 赞同来自: Laya.stage.on(Event.KEY_DOWN,this,KeyHandler); 应该这样写.... 2017-01-24 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****403 相关问题 Layabox 2.0 bate5 运行...

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

763. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 66%]

...te"; } //监听QQ内置浏览器切换至后台事件  window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInput...

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

764. Laya中的宏编译要怎么用啊 [ 66%]

...lash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADD...

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

765. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 66%]

... addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeC...

来源: Laya3.0_api 发布时间: 20231102

766. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 66%]

... 是一个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移...

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

767. Laya IDE横竖屏切换时,不断刷新 [ 66%]

...his, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同...

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

768. 高级应用-实时阴影 [ 66%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author ... */ public class RealTimeShadow { private var _quaternion:Quaternion = new Quaternion(); private var scen...

来源: Laya_示例 发布时间: 20260303

769. 材质-BlinnPhong-漫反射贴图 [ 66%]

...ort laya.d3.shader.ShaderCompile3D; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; public class BlinnPhong_DiffuseMap { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function BlinnPhong_DiffuseMap() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stag...

来源: Laya_示例 发布时间: 20260303

770. 打包app,http无法设置content-type [ 66%]

...gt;, cb:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'pos...

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