大约有 986 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)
Laya_社区(608) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; co...
来源: Laya2.0_文档 发布时间: 20210715
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170929
...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...
来源: Laya2.0_api 发布时间: 20190513
...均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); this.panel.size(200, 200); this.panel.scrollType = Laya.ScrollType.Both; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atlas/comp/h...
来源: Laya3.0_文档 发布时间: 20251010
... private var m_Role:Animation; private var m_RolePosition:Point = new Point(1200,1000); private var m_MovStartPos:Point = new Point(); private var m_MovDistanceX:int = 0 ; private var m_MovDistanceY:int = 0 ; private va...
来源: Laya_社区 发布时间: 20170921
...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...
来源: Laya2.0_api 发布时间: 20190513
...; this.createBridge(); this.eventListener(); } createBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = gro...
来源: Laya2.0_示例 发布时间: 20251130
... src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;"></img>'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomVie...
来源: Laya_社区 发布时间: 20170911
...ll.png"; //设置高度 vScrollBar.height = 200; //设置位置 vScrollBar.pos(400, 200); //最低滚动位置数字 vScrollBar.min = 0; //最高滚动位置数字 vScrollBar.max = 100; //滚动变化事件回调 vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.ad...
来源: Laya2.0_文档 发布时间: 20210715
...oll.png"; //设置宽度 hScrollBar.width = 400; //设置位置 hScrollBar.pos(150, 170); //最低滚动位置数字 hScrollBar.min = 0; //最高滚动位置数字 hScrollBar.max = 100; //滚动变化事件回调 hScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.ad...
来源: Laya2.0_文档 发布时间: 20210714