• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 986 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)

261. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 61%]

...); } 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

262. laya.ani.bone.Skeleton [ 61%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

263. laya.map.GridSprite [ 61%]

...值为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

264. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...均已创建完毕,此方法只执行一次 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

265. 动画不显示 [ 61%]

...       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

266. laya.ui.Box [ 61%]

...值为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

267. 2D物理-桥 [ 61%]

...; 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

268. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 61%]

... 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

269. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 61%]

...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

270. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 61%]

...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