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

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

261. laya.display.Sprite_API3.0 [ 42%]

...prite();//创建一个 Sprite 类的实例对象 sprite 。 shape.graphics.drawRect(0, 0, 100, 100, "#ccff00", "#ff0000", 2);//绘制一个有边框的填充矩形。 shape.x = 400;//设置 shape 对象相对于父容器的水平方向坐标值。 shape.y = 200;//设置 shape 对象相对于父容...

来源: Laya3.0_api 发布时间: 20231115

262. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 41%]

...: 768 关注: 3 人 momo199059 • 2018-01-06 12:06 就是我用graphics.drawRect 画一个黑色sprite,在浏览器是里正常的,但是在apk里面是白色的 momo199059 • 2018-01-06 12:07 还有就是在apk里 htmldivelement 是不是html的<image>标签就无效了 momo199059 • 2...

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

263. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 40%]

...is._blood_area.h + this._demon_area.h + this._doll_area.h;  this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff0000", 1);  if( ! DollGunRole._ani_cached ) { DollGunRole._ani_cached = true; Laya.Animation.createFrames( ["ui/gun_box/plane.png"], "demon_fly" ); Laya.Animation.createFram...

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

264. laya.ui.List_API3.0 [ 38%]

... laya.ui.Label; class Item extends Box { public function Item() { graphics.drawRect(0, 0, 100, 20,null, "#ff0000"); var label:Label = new Label(); label.text = "100000"; label.name = "label";//设置 label 的name属性值。 label.size(100, 20); addChild(label); } } example (function (_super){ func...

来源: Laya3.0_api 发布时间: 20231115

265. LayaAir开发笔记(1)五十音图连连看 [ 38%]

...tage.addChild(card[index]); card[index].name = index; card[index].graphics.drawRect(0, 0, 80, 120, null, "#000000", 2); card[index].graphics.loadImage("linkgame_card.jpg"); card[index].size(80, 120); card[index].pos(10 + 100 * i, 130 + 140 * j); card[index].on(Laya.Event.CLICK, this, function(e) { i...

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

266. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...点击区域 let hitArea: Laya.HitArea = new Laya.HitArea(); hitArea.hit.drawRect(0, 0, 100, 100, "#00ff00"); sp.hitArea = hitArea; 我们来看看运行结果: (动图3-6) 可以看到,点击区域是有点击效果的,其他区域是没有效果的,而如果不设置hitArea,只要是...

来源: Laya3.0_文档 发布时间: 20251010

267. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 33%]

...>"; Laya.stage.addChild(html3); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,30,null,"#999999"); Laya.stage.addChild(sp);4、实现超链接 示例如下:public function HtmlDemo() { var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span href='http://ask.layabox.com/'&...

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