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

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

2111. laya.d3.physics.shape.HeightfieldTerrainShape_API3.0 [ 60%]

...neTo destroy setMargin updateLocalTransformations Constructors constructor new HeightfieldTerrainShape(heightfieldData: Uint16Array | Float32Array | Uint8Array, heightStickWidth: number, heightStickLength: number, minHeight: number, maxHeight: number, heightScale: number): HeightfieldTerrainShape Ov...

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

2112. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 60%]

...]); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ui.langren.room.SayBoardUI(); paopao.x = 10; paopao.lbSayName.text = name; let div:Laya.HTMLDivElement = new Laya.HTMLDivElement(); div.style.lineHeight = 36; div.style.fontSize = 26; div.style.valign = "middle"; // div.s...

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

2113. laya.ui.Dialog_API3.0 [ 60%]

...te));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog。 dialog.dragArea = "0,0,150,50";//设置 dialog 的拖拽区域。 dialog.show();//显示 dialog。 dialog.closeHandler = new Handler(this, onCl...

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

2114. 微信小游戏加载资源问题 [ 60%]

...er.autoCacheFile || isSaveFile) { MiniFileMgr.copyFile(filePath, readyUrl, new Laya.Handler(MiniFileMgr,MiniFileMgr.copyFileCallback,[callBack,data]), encoding, isAutoClear); } else callBack != null && callBack.runWith([0, data]); } else callBack != null && callBack.runWith([0, data]...

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

2115. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 60%]

...ion drawSomething():void         {             sp = new Sprite();             Laya.stage.addChild(sp);             //画三角形             sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00");            ...

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

2116. FlashDevelop中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 60%]

...背景色是黑色的    Laya.init(600, 300);    var txt:Text = new Text();         //设置文本内容    txt.text = "Hello Layabox";         //设置文本颜色为白色,默认颜色为黑色    txt.color = '#ffffff';         //将文本内容添加...

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

2117. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 60%]

... } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是...

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

2118. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 60%]

...oaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运行后,按钮被按下时,动画效果如动图11所示: ![12](img/12.gif)(图11) ### 4、多个动效模板创建复杂...

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

2119. 为什么会出现报错 ani not found:ufo1_down [ 60%]

...舞台大小 Laya.init(400,852); // 创建循环滚动的悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // ...

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

2120. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 59%]

...n); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangl...

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