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

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

101. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 70%]

...ESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu &&am...

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

102. 性能测试-卡通人物2 [ 69%]

...racter4]; private var characters:Array = []; private var text:Text; public function PerformanceTest_Cartoon2() { Laya.init(1280, 720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters()...

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

103. @regClass编译报错! [ 69%]

...加载本地图片都报错 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2023-06-09 16:59 浏览: 2950 关注: 3 人 买包的小当家 • 2023-06-08 21:18 。。。 别闹!import循环引用在项目里太正常了。 这几个文件是我把工程里有问...

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

104. ScrollRect设置会引起其他的UI资源无法正在显示 [ 68%]

...rivate var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for...

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

105. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 68%]

... ‘_physicsUpdateList’of null 求指导~~       __proto._onDestroy=function(){          (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));          var physics3D=Laya3D._physics3D;         delete PhysicsComponent._phys...

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

106. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 67%]

....events.EventDispatcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunci...

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

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

...:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * ...

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

108. 一个场景中加两个线形碰撞体出错 [ 67%]

...个版本修复,    chaincollider的  方法    override protected function getDef():* {             if (!_shape) {                 _shape = new window.box2d.b2ChainShape();                 _setShape(false);             }        ...

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

109. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 66%]

...面则能检测到按键按下,却一直输出undefined var GameStart = (function (_super) {     function GameStart() {         GameStart.super(this);         Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode...

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

110. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 66%]

...aRender; private var mouseConstraint:*; private var engine:*; /***/ public function Retitution() { super(); this.width = stageWidth; this.height = stageHeight; setup(); } private function setup():void { initMatter(); initWorld(); Laya.stage.on("resize",this,onResize); } private function initMatter()...

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