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

大约有 568 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0059 秒)

61. laya.display.Sprite [ 80%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectImplements laya.display.ILayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprit...

来源: laya_api 发布时间: 20170929

62. DOM元素-视频 [ 80%]

...ine", true); // 设置画布上的对齐参照物 let reference = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils....

来源: Laya2.0_示例 发布时间: 20240930

63. 区块地图-等角地图 [ 80%]

...ayer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this.layer = this.tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.tan(180 / Math.PI * 30) * radiusX; // 14.37 var color = "#FF7F50"; this.sprite = new Laya.Sprite(); thi...

来源: Laya2.0_示例 发布时间: 20240930

64. 分享:Dragonbones/Spine的换肤操作 [ 79%]

... laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var templete:Templet;//动画模板类 private var ske...

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

65. 循环添加一组按钮事件无法正常使用 [ 79%]

...checkLoc[eggLoc[i][0]][eggLoc[i][1]]= 1;                 var b:Sprite = new Sprite();                 //var c = this.getChildByName("eggHole"+[eggLoc[i][0]+eggLoc[i][1]);                 b.graphics.drawTexture(Laya.loader.getRes(Res),tx-45,ty-45);          ...

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

66. laya.particle.Particle2D [ 79%]

...nts Packagelaya.particleClasspublic class Particle2DInheritanceParticle2D Sprite Node EventDispatcher Object Particle2D 类是2D粒子播放类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为...

来源: laya_api 发布时间: 20170929

67. 请问这是原因? [ 79%]

... 赞同来自: package { import laya.display.Graphics; import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.utils.Browser; import laya.webgl.WebGL; import laya.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function...

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

68. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 79%]

... laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:...

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

69. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 79%]

...办法降DrawCall package { import laya.display.Node; import laya.display.Sprite; import laya.maths.Rectangle; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number ...

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

70. laya.map.GridSprite [ 79%]

...cumentationAll Packages | All Classes | Index | Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public Properti...

来源: laya_api 发布时间: 20170929