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

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

1961. ios safari横屏下,鼠标点击不正确,且旋转屏幕时显示错位 [ 47%]

...wser.window.orientation; if (orientation !=null && orientation !=_$this._previousOrientation && _me._isInputting()){ Input["inputElement"].target.focus=false; } _$this._previousOrientation=orientation; if (_me._isInputting())return; if (Browser.onSafari) _me._safariOffsetY=Browser.cl...

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

1962. 如何使用vscode编译laya项目 [ 47%]

...reTest/.laya/compile.js compile Debugger listening on port 48982. Warning: This is an experimental feature and could change at any time. laya_ide_time.require.single.gulp-util: 7.87ms gulp.js:8 laya_ide_time.require.single.pretty-hrtime: 2.2ms gulp.js:8 laya_ide_time.require.single.chalk: 10.4ms gul...

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

1963. Laya.URL.basePath加载不到网络资源 [ 47%]

...: Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/ba...

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

1964. 加载.atlas动画错误 [ 47%]

...dAtlas("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); }));     代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口  然后...

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

1965. laya.ui.RadioGroup_API3.0 [ 47%]

...背景颜色。 Laya.loader.load(["resource/ui/radio.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var radioGroup:RadioGroup = new RadioGroup();//创建一个 RadioGroup 类的实例对象 radioGroup 。 radioGroup.pos(100, 100);//设置 ra...

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

1966. laya.ui.ComboBox_API3.0 [ 47%]

...背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var comboBox:ComboBox = new ComboBox("resource/ui/button.png", "item0,item1,item2,item3,item4,item5");//创建...

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

1967. laya.ui.Tab_API3.0 [ 46%]

...背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();//创建一个 Tab 类的实例对象 tab 。 tab.skin = "resource/ui/tab.png";//设置 tab 的皮肤。 tab.labels = "...

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

1968. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 46%]

...nction这样定义:function (){if(arguments.length>0&&"return this"===arguments[arguments.length-1])return function(){return e}} Chrome和预览里面的Function这样定义:function Function() { [native code] } 2018-03-07 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 用这...

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

1969. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 46%]

...ar Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of undefined     at Function.<anonymous> (laya.core.js:127...

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

1970. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 46%]

...建项目时生成的内容不一致了 这是创建项目时的内容/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import GameUI from "./script/GameUI" import GameControl from "./script/GameControl" import Bullet from "./script/Bullet" import DropB...

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