大约有 914 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(546) Laya2.0_示例(94) Laya_示例(90) Laya2.0_文档(79) Laya3.0_api(62) Laya3.0_文档(41) laya_api(1) Laya2.0_api(1)
...性 y 的值,用于控制 textInput 对象的显示位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布...
来源: Laya3.0_api 发布时间: 20231115
...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; showApe(); })(); function showApe() { // ...
来源: Laya2.0_文档 发布时间: 20210715
...属性 y 的值,用于控制 textArea 对象的显示位置。 textArea.width = 300;//设置 textArea 的宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高...
来源: Laya3.0_api 发布时间: 20231115
...', pxTimes=' + GameMain.pxTimes); Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.stage.bgColor = '#cccccc'; let txt: Laya.Text = new Laya.Text(); txt.text = GameMain.pxTimes + '倍ch/h=' + Laya.Browser.clientHeight + '...
来源: Laya_社区 发布时间: 20170403
...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 IOS 二次开发 callbackToJSWithClass, JS没有收到OC的回调 Skeleton 类播...
来源: Laya_社区 发布时间: 20180323
...同来自: 请参考:public function LayaAirDemo() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Laya.timer.once(500,this,onLoop); Stat.show(); } private function onLoop():void { __JS__('var LayaCanvas1=document.getElementsByTagName("canvas")[0]'); __JS__('var ...
来源: Laya_社区 发布时间: 20170421
...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...
来源: Laya3.0_文档 发布时间: 20251010
...ProgressBar("loads/progressBar.png"); progressBar.pos(50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; //当progressBar的value值改变时触发 progressBar.changeHandler=new Handler(this,onChange); Laya.stage.addChild(progressBar); } private function onChange(value:Number):void { tr...
来源: Laya_社区 发布时间: 20160509
...,要怎么弄呢,下面是代码 var space = Browser.clientWidth / 12; var btnWidth = (Browser.clientWidth - space * 5) / 4; var btnHeight = btnWidth; btn_bottom.size(btnWidth, btnHeight); scaleX = btnWidth / btn_imgWidth; s...
来源: Laya_社区 发布时间: 20161202
...信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]); ...
来源: Laya_社区 发布时间: 20180621