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

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

201. 动画-旧版骨骼动画 [ 67%]

...xelRatio, Laya.Browser.pixelRatio); this.changeActionButton.pos(Laya.stage.width / 2 - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.z...

来源: Laya_示例 发布时间: 20261113

202. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 67%]

... debug_txt.autoSize = TextFieldAutoSize.LEFT;             debug_txt.width = 1000;             debug_txt.y = 20;             var tf:TextFormat = new TextFormat(null,12,0xFFFFFF);             debug_txt.defaultTextFormat = tf;             debug_txt.text = "start...";    ...

来源: Laya_社区 发布时间: 20200217

203. 我创建了 一个 dialogUI,怎么在页面中打开? [ 67%]

... dialogUI,怎么在页面中打开? this.wrong=new ui.wrongUI; this.wrong.width=300; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话框 我现在这个对...

来源: Laya_社区 发布时间: 20171027

204. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 67%]

...private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private function startFun(): void { this.templet = new SpineTempletBinary(); this.temp...

来源: Laya2.0_文档 发布时间: 20210715

205. 动画不显示 [ 67%]

...             {                 m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2);             }             else{                 m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2);             }      ...

来源: Laya_社区 发布时间: 20170921

206. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 67%]

... img.graphics.drawTexture(texture); //设置纹理宽高 img.size(texture.width, texture.height); } } } ``` 代码运行效果如图7-2所示。 ![动图7-2](img/7-2.gif) (动图7-2)

来源: Laya2.0_文档 发布时间: 20210715

207. 求问sprite放大后,graphics绘制的图像位置偏移 [ 67%]

...getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10...

来源: Laya_社区 发布时间: 20170821

208. 使用webgl之后toDataUrl返回黑色的图像 [ 67%]

...rite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onCli...

来源: Laya_社区 发布时间: 20170523

209. list里面可以加入多个view吗? [ 67%]

...{ private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); li...

来源: Laya_社区 发布时间: 20170626

210. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 67%]

...x = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = new ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize = 30; comboBox.i...

来源: Laya2.0_文档 发布时间: 20210715