大约有 436 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(282) Laya2.0_文档(49) Laya2.0_示例(41) Laya_示例(34) Laya3.0_api(17) Laya3.0_文档(12) Laya2.0_api(1)
... private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; /...
来源: Laya_社区 发布时间: 20171129
...ng"; //设置高度 vScrollBar.height = 200; //设置位置 vScrollBar.pos(400, 200); //最低滚动位置数字 vScrollBar.min = 0; //最高滚动位置数字 vScrollBar.max = 100; //滚动变化事件回调 vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChi...
来源: Laya2.0_文档 发布时间: 20210715
...skin = "../../../../res/ui/hscroll.png"; //设置宽度 hScrollBar.width = 400; //设置位置 hScrollBar.pos(150, 170); //最低滚动位置数字 hScrollBar.min = 0; //最高滚动位置数字 hScrollBar.max = 100; //滚动变化事件回调 hScrollBar.changeHandler = new Handler(this, onChange); ...
来源: Laya2.0_文档 发布时间: 20210714
...gl.WebGL; public class TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈"; text.font="hu" text.pos...
来源: Laya_社区 发布时间: 20160514
..._Physics_Strandbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); La...
来源: Laya2.0_示例 发布时间: 20251130
...ollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handl...
来源: Laya2.0_文档 发布时间: 20210714
... = Laya.WebGL; var Pool = Laya.Pool; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; St...
来源: Laya_社区 发布时间: 20181120
...ollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = new Handl...
来源: Laya2.0_文档 发布时间: 20210715
...unction parseComplete(){ skeleton = templet.buildArmature(1); skeleton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphi...
来源: Laya_社区 发布时间: 20171114
...var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro2:Object={url:"loads/progressBar$bar.png",type:Loader.IMAGE}; var proArr:Array=; proArr.push(pro1,pro2); Laya.loader.lo...
来源: Laya_社区 发布时间: 20160509