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

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

71. 请问这是原因? [ 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

72. 循环添加一组按钮事件无法正常使用 [ 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

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

74. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 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

75. 新手引导在ios浏览器表现异常 [ 79%]

...ios浏览器表现异常 代码: module laya  {     export class Sprite_Guide      {         private width = 750;         private height = 1334;         constructor()          {             Laya3D.init(this.width, this.height);    ...

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

76. 路径显示会添加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

77. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 79%]

...ChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3D>Util3d.getRes(this.sEnemyRes) pNewScene.addChild(pBull); pNewScene.addChild(pEnemy); let tPosBull = Util3d.getSprite3D(pNewScene, "bullBeginPos") pBul...

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

78. 封装类的时候 怎么在类中表示自身? [ 79%]

...装类的时候 怎么在类中表示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("../bi...

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

79. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 79%]

...Text = Laya.Text;     import Image = Laya.Image;     import Sprite = Laya.Sprite;       export class SmartScale_T {           //适配模式         private modes:string = "exactfit";         //全局文本信息         private txt: Text...

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

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