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

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

931. __JS__(as变量)为什么不能用? [ 53%]

... 赞同来自: 特别好奇 /*[IF-FLASH]*/ package {     /**      * @private      */     public function __JS__(value:*):* {         return null;     } } 这句话是什么意思~~~~~~查也查不到~在Laya源代码里面看到的 2018-03-21 0 0 分享 微博 QZONE 微信 为...

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

932. LayaBox二次开发 如何用到 activity的上下文对象Context [ 53%]

...发?请指导 如,android里写了一个Test类, public class Test { private Context context; public void init(final Context context) { this.context = context; } public void msg() { Log.d("layabox", "test"); Toast.makeText(context, "测试", Toast.LENGTH_SHORT).show(); } }该如何反射才能...

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

933. UI编辑器里面创建了一个Graphics line,如何能获取组件编辑的的 points数据 [ 53%]

...phics["_one"]    JS就是这点强大,什么都能访问,管你什么private,protected,还能覆盖原有的方法,属性。 2019-02-28 0 0 分享 微博 QZONE 微信 安 赞同来自: this.graphics._one.points  this为挂着Graphics line的对象 2019-02-28 0 0 分享 微博 QZONE 微...

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

934. Native IOS下获取陀螺仪数据为0 [ 53%]

...roscope.instance.on(Laya.Event.CHANGE, this, this.onOrientationChange);   private onOrientationChange(absolute:Boolean, info: Laya.RotationInfo):void         {             if (info.alpha === null)             {                      console.log("当前设...

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

935. 不存在的资源路径问题 [ 53%]

...Loaded 这个,这种怎么跟呢?谢谢。 zeorro • 2017-11-02 17:13 private onLibLoaded():void { CommonLocator.parseJsonFile(); let arr = CommonLocator.getJsonList("active"); } 你的截图中的方法是这里调用的,就是加载完成的时候调用的 zeorro • 2017-11-02 17...

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

936. Sprite图片显示不了 [ 53%]

...= "#336699";             showApe();         }         private function showApe():void {             var t:Text = new Text();             t.text = "asdfasd";             t.fontSize = 50;             t.color = "#ffffff";             Lay...

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

937. 发布QQ玩一玩,使用VScode,windows环境下打包问题。 [ 53%]

...之后定向到的是layaforqq.js的28829那一行,         /**@private */         __proto._setClipChanged=function(){             if (!this._clipChanged){                 this._clipChanged=true;                 this.callLater(this.change...

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

938. Touch接口缺少stageX,stageY [ 53%]

...MO “鼠标交互--双指旋转(多点触控)”有这样的代码: private onMouseDown(e: Event): void {             var touches: Array<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(       ...

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

939. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 53%]

...sceneURl, clas:MyScene}], Laya.Handler.create(this, this.loadComplete)); } private loadComplete():void { console.log("debuginfo LayaAir3D constructer loadres complete"); this._scene = MyScene.load(this._sceneURl) as MyScene; this._scene.output(); Laya.stage.addChild(this._scene); var camer...

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

940. 关于fillText问题 [ 53%]

关于fillText问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,...

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