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

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

1351. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 65%]

...     import laya.display.Sprite;     import laya.ui.Image;     public class LayaSample {                  public function LayaSample() {             //初始化引擎             Laya.init(1136, 640,WebGL);              var image:Image...

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

1352. Laya的安卓二次开发主动调用js层,无法实现传回数据给js层 [ 65%]

...无法返回数据给Laya层。 方式1:m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello Laya!"); } catch(JSONException e) { e.printStackTrace(); } Log.d("Laya", "======准备返回参数 :"+obj.toString()...

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

1353. 性能测试-卡通人物 [ 65%]

...mport laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class PerformanceTest_Cartoon { private var colAmount:int = 100; private var extraSpace:int = 50; private var moveSpeed:int = 2; private var rotateSpeed:int = 2; private var characterGroup:Array; public function Perfor...

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

1354. 将一个Number类型的变量赋给一个int型变量,转换后为何没有自动取整呢? [ 65%]

...操作。  原生例子:  var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(value); } 兼容H5写法:  var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(uint(value)); } (3)、除法运算取整描...

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

1355. 多个button如何区分 [ 65%]

...on();      .......      btn.on(Event.CLICK,this,onMouse,['btn'+i]) } public function onMouse(aa):void {       if(aa=='btn001')      {      }       else if(aa=='btn002')     {      } } 2017-04-25 1 2 分享 微博 QZONE 微信 189*****192 赞同来自: 已接近!! 2017-04-2...

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

1356. 导出的3D资源加载报错 [ 65%]

...import laya.events.Event;     import laya.utils.Stat;          public class LayaSample {                  private var _stateMachine:StateMachine;         public function LayaSample()         {             Laya3D.init(1000, 500,true); //适配...

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

1357. 天空-天空穹 [ 65%]

...rt laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkyDomeSample { public function SkyDomeSample() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(ne...

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

1358. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 65%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ani/bone/canvasmesh/SkinMeshForGraphic" SkinMeshForGraphic Class SkinMeshForGraphic Laya Hierarchy MeshData SkinMeshForGraphic Index Constructor...

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

1359. APP打包后运行效果与调试效果不一致(sprite,child) [ 65%]

...试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{    var childs:Array<Laya.Sprite> = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; }   这样实现 当...

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

1360. 急急急,如何设置按钮点击加载ani [ 65%]

... laya.maths.Rectangle;     import laya.display.Stage;          public class LayaUISample {         private var skin:String = "https://layaair.ldc.layabox.co ... 3B%3B         private var aniPath:String = "https://layaair.ldc.layabox.co ... 3B%3B         public fun...

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