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

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

2501. 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 [ 44%]

...选项-》用户设置,搜索typescript,会发现 "typescript.tsdk": null,这一条 在右面选中   用户设置,在下面添加这么一行: "typescript.tsdk":"/usr/local/lib/node_modules/typescript/lib" /usr/local/lib/node_modules/typescript这个路径是你安装typescript的路径...

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

2502. Sprite-轴心点 [ 44%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { sp1.rotation += 2; sp2.rotation += 2; } } }

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

2503. tiledMap 官方示例都运行不了 [ 43%]

...../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null);   调用后报错TypeError: Cannot read property 'split' of undefined     at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.js:257:31)     at TiledMap.__pr...

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

2504. 如何通过命令行工具构建和发布项目 [ 43%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2018-08-17 16:17 浏览: 6313 关注: 11 人 babykylin • 2018-08-06 16:19 多少钱,出价吧 三包包 • 2018-08-06 20:22 @babykylin:1000块钱 基本功能 一键MD5码 资...

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

2505. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 43%]

...this.IndexFrame = dt.getTime();             if (this.VideoTexture != null)                 this.VideoTexture.element.requestVideoFrameCallback(fun);         }         this.VideoTexture.element.requestVideoFrameCallback(fun); 用此方法输出每帧渲染的时间间隔1、PC...

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

2506. 鼠标交互-自定义事件 [ 43%]

...vent.CLICK, this, onSpriteClick); } private function onSpriteClick(e:Event=null):void { var randomAngle:int = Math.random() * 180; //发送自定义事件 sp.event(ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private function onRotate(newAngle:int):void { Tween.to(sp, {"rotation" : ne...

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

2507. UI-Dialog [ 43%]

...eate(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE...

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

2508. 动画不显示 [ 43%]

...;         }         private function loadResourceComplated(e:*=null):void         {             //开始异步加载资源             Laya.loader.load(m_MapImgUrl,Handler.create(this,onLoadMapComplated));             //创建角色帧            ...

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

2509. 如何监听移动端软键盘的弹出和收回? [ 43%]

...ventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { textInput=new TextField(); textInput.type=TextFieldType.INPUT; textInput.border=true; textInput.multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput);...

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

2510. UI-Dialog [ 43%]

...eate(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE...

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