大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: public function set renderingOrder(value:int):void 数字小的先画,大的后画 2018-06-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 linzhaojie 相关问题 ...
来源: Laya_社区 发布时间: 20180623
...出现透明的情况,怎么生成更模糊的效果? public static function getScreenshot(bl:int=15):Sprite{ var htmlC:HTMLCanvas =_self.drawToCanvas(1334,750,0,0); var _texture:Texture = new Texture(htmlC); var sp2:Sprite = new Sprite(); sp2.graphics.drawTexture(_tex...
来源: Laya_社区 发布时间: 20170825
...的一个对象。 */ static getItemByCreateFun(sign: string, createFun: Function, caller: any = null): any { var pool: any[] = Pool.getPoolBySign(sign); var rst: any = pool.length ? pool.pop() : createFun.call(caller); rst[Pool.POOLSIGN] = false; return rst; } 基于上述的情况,如果对象...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, 0.5); material.renderMode = Laya.BlinnPhongMater...
来源: Laya_社区 发布时间: 20190126
...t.MOUSE_DOWN调用window.open相关问题 点击的调用函数: private function OnDown(e:Event):void { Browser.window.open("http://baidu.com"); } Laya.stage.on(Event.KEY_DOWN, this, OnDown);//正常 Laya.stage.on(Event.MOUSE_DOWN, this, OnDown);//被拦截 Laya.stage.on(Event.CLICK, thi...
来源: Laya_社区 发布时间: 20181227
...stack":{"hash":"7d3c8a0d876bf167157fe044b73f4d88","error":"Error\n at Function.i.error \n at e.playSound\n at e.onRandBtnDown\n at e.runWith\n at i.event \n at t.e.sendEvents \n at t.e.onMouseDown 我们游戏的线上前端日志发现了很多类似上述的...
来源: Laya_社区 发布时间: 20180902
...textureLoaded,[tex,args]); }执行到这段时,报了tex.once不是一个function的错,但是Texture继承自EventDispatcher,有once这个方法的啊。 http://thirdqq.qlogo.cn/g?b=sdk&k=JZWZibBicdrSCiaPLgFPLd7Cw&s=100&t=1483308298这里,我加载的图片地址是这样。我...
来源: Laya_社区 发布时间: 20180724
...入手机里就不行了- - Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp) var cMask = new Sprite() cMask.graphics.drawCircle(40, 40, 37, "#ff0000") sp.mask = cMask //sp.ad...
来源: Laya_社区 发布时间: 20180710
...("res/dg/dg.lh")); mesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { setMeshParams(sprite, Laya.StandardMaterial.RENDERMODE_CUTOUT, new Vector4(3.5, 3.5, 3.5, 1.0), new Vector3(0.6, 0.6, 0.6), new Vector2(1.0, 1.0)); }); ...
来源: Laya_社区 发布时间: 20170718
...z的为什么要这样判断 z<0 || z>1 __proto.worldToViewportPoint=function(position,out){ Matrix4x4.multiply(this._projectionMatrix,this._viewMatrix,this._projectionViewMatrix); this.viewport.project(position,this._projectionViewMatrix,out); var outE=out.elements; if (out.z < 0.0 || out....
来源: Laya_社区 发布时间: 20171229