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

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

101. UI 组件中list自动滚动到list底部或者顶部 [ 68%]

...st自动滚动到list底部,代码片段 MyChat.prototype.ScrollToBottom=function(caller,callback){ var page=this.msgList.length - 8; if(page < 0)page=0; page +=1; if(caller) this.list.tweenTo(page,0,Handler.create(caller,callback)); else this.list.tweenTo(page,0); } 2019-02-26 添加评论 免...

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

102. Laya 3D项目中 3d模型可以添加2d刚体吗 这边添加会出现报错 [ 68%]

... 这边添加会出现报错 TypeError: this.owner.localToGlobal is not a function preload.js:55 at RigidBody.__proto._createBody (/Users/tuyoo/client5/work/Laya_work/FlipRush/LayaProject/car/bin/libs/laya.physics.js:2031:27) at RigidBody.__proto._onAwake (/Users/tuyoo/client5/work/Laya_work/FlipRus...

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

103. 关于UI与3D场景的问题 [ 68%]

...交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,很好,这个按...

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

104. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 68%]

...TiledMap/orthogonal.json",viewRect,Laya.Handler.create(this,onMapLoaded)); function onMapLoaded(){ //将原地图放大2倍 this.tMap.scale = 2; } ``` 运行效果如图8所示。 ![图8](img/8.png) (图8) #### 2.2.2 设置地图缩放的中心点 很明显,图8中的效果并不是我们想要的...

来源: Laya2.0_文档 发布时间: 20210715

105. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 68%]

...: 以下三种方式都无返回 window.addEventListener('devicemotion', function(event){}) window.addEventListener('deviceorientation', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, thisthis.onDeviceorientation);  连接打开方式都由微信扫一扫打开,safari不...

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

106. JSON文件加载成功后,怎么解析成Object对象 [ 68%]

...or OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.co...

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

107. 加载预制体json,返回值不统一 [ 68%]

...方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(thisfunction (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(thisfunction (obj) {  ...

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

108. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 68%]

...-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 用最新版的引擎function changeAction(){//debugger;    if(tActionID%2 == 0)    {        skeleton0.replaceSlotSkinName("head", "h1-tou5", "robotFolder/head");    }    else    {        skeleton0.replaceSlotSkinName...

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

109. Animation的createFrames为何加载不了有的图集资源 [ 68%]

...ya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():...

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

110. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 68%]

...st clean = require('gulp-clean') let staticVersion = {} gulp.task('clean', function () { return gulp.src('./src/assets/*', {read: false}).pipe(clean()) }) /** 创建文件hash清单 */ gulp.task('create:hash',['clean'], () => { return gulp.src([ './server/static/**/*.atlas', './server/static/**/*...

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