大约有 1,655 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0097 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(71) Laya_示例(58) Laya2.0_示例(54)
...ity":1, "properties": { "isCanPass":"0" }, "propertytypes": { "isCanPass":"string" }, "type":"tilelayer", "visible":true, "width":25, "x":0, "y":0 }], "nextobjectid":1, "orientation":"orthogonal", "properties": { "isCanPass":"1" }, "propertytypes": { "isCanPass":"string" }, "renderorder":"right-down...
来源: Laya_社区 发布时间: 20180326
... 提交 1 个回复 Laya_Aaron 赞同来自: 不支持font var html:String = "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</span>"; html += "<span color='#6ad2e3'>创建的</span><br/>"; html...
来源: Laya_社区 发布时间: 20190108
...andler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_M...
来源: Laya2.0_文档 发布时间: 20210715
...我在ps内设置gl_FragColor的Alpha值,并没有效果呢 var ps: string ="#ifdef FSHIGHPRECISION\nprecision highp float;\n" + "#else\nprecision mediump float;\n" + "#endif\n\n" + "#include \"LightHelper.glsl\";\n\n" + "uniform sampler2D u_texture;\n" + "varying vec2 v_Texcoord0;\n" + "void m...
来源: Laya_社区 发布时间: 20171226
...i++) { res = res + String.fromCharCode(data[i]); } data = JSON.parse(res); }catch(error) ...
来源: Laya_社区 发布时间: 20200427
...ort laya.webgl.WebGL; public class LayaAirDemo { private const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...
来源: Laya_社区 发布时间: 20170628
...te(this,this.showImg,[url]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来 ...
来源: Laya2.0_文档 发布时间: 20210714
... 在设置Label.text属性情况下。Label存在可以log。设置的text string 也无问题。就是laya.ui.js 中this._tf为null导致 设置text失败。LayaAir2.13 版本。 附件 : --> 2022-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20220823
...er.create 不会反馈失败状态跟描述不符合 var resource:Array<string> = ["scene/Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { ...
来源: Laya_社区 发布时间: 20190626
...this,test); } ================== public static function createSprite(url:String,c:Boolean = false):Sprite { var sp:Sprite = new Sprite(); sp.loadImage(url); return sp; } bg和bg2一样大,bg盖在bg2上,无论对bg或者是bg2添...
来源: Laya_社区 发布时间: 20161223