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

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

1061. 鼠标交互-双指缩放(多点触控) [ 64%]

...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { lastDistance = getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } private function onMouseMove(e:Event=null):void { v...

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

1062. layaair1.5.4测试版本ide下调试 报protobuf错误 [ 64%]

...bject} CarProtoModel {msg_proto: msg_cs, conf_proto: conf_game, _callBack: null, _proxy: Proxy, _data: null…} TypeError: require is not a function at Object.ProtoBuf.Util.Util.fetch (file:///D:/workspace_laya/car_h5_nonet/bin/h5/protobuf.js:354:26) at Object.ProtoBuf.loadProtoFile (file:///D:/work...

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

1063. box2d引擎报错问题 [ 64%]

...laya.physics.js:430 Uncaught TypeError: Cannot read property 'GetType' of null     at box2d.b2Fixture.GetType (laya.physics.js:430)     at box2d.b2ContactFactory.Create (laya.physics.js:576)     at box2d.b2ContactManager.AddPair (laya.physics.js:586)     at box2d.b2BroadPhase.UpdatePairs (la...

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

1064. List组件拖动浏览时item会出现重叠的现象 [ 64%]

...ID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); this.addChild(this._lb); // this._img = new Image(); // this._img.size(ListDataSo...

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

1065. laya.ui.RadioGroup_API3.0 [ 64%]

...一个新的 Group 类实例。 Parameters Default value labels: string = null 标签集字符串。以逗号做分割,如"item0,item1,item2,item3,item4,item5"。 Default value skin: string = null 皮肤。 Returns RadioGroup Properties Optional _extra _extra: INodeExtra Inherited from Node._extra...

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

1066. JS进度条加载问题 [ 63%]

...为true,根据加载文件个数获取加载进度 Laya.loader.load(arr,null,Laya.Handler.create(this,onProLoaded),null,true,true); } function showProgress() { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progre...

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

1067. UI-ComboBox [ 63%]

...ndler.create(this, onLoadComplete)); } private function onLoadComplete(e:*=null):void { var cb:ComboBox = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private function createComboBox(skin:String):ComboBox { var comboBox:ComboBox = n...

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

1068. 小游戏项目 加载有中文的json文件 报错 [ 63%]

... url:String = "res/json/Sheet1.json"; Laya.loader.load(url, Handler.create(null, onJsonLoaded,[url]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工具中报错 Unexpected token in...

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

1069. 引擎能打包成html页面,然后直接用手机webview加载吗? [ 63%]

...loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. 2017-07-07 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 那你需要解决跨域的问题了 2017-07-07 0 0 分享 微博 QZONE 微信 helloqiner 赞同来自: 我没办解决跨...

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

1070. laya.ui.FontClip_API3.0 [ 63%]

... Defined in laya/ui/FontClip.ts:30 Parameters Default value skin: string = null 位图字体皮肤 Default value sheet: string = null 位图字体内容,空格代表换行 Returns FontClip Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _...

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