大约有 633 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
.../初始化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.m...
来源: Laya_社区 发布时间: 20170825
...载:Laya.loader.create("Laya/Conventional/Map_SCC.ls",Laya.Handler.create(this,this.LoadCompleteHandler)); 加载完成后: var scene3D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55...
来源: Laya_社区 发布时间: 20181031
...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...
来源: Laya_社区 发布时间: 20181217
...来自: SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, onComplete)); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); https://layaair.ldc.layabox.co ... eDemo 2018-06-14 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 更新...
来源: Laya_社区 发布时间: 20180614
... ↓按钮回调 绘制子域到工程 bt_rank_call_back(body){ this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; v...
来源: Laya_社区 发布时间: 20181217
...集,实现遮罩效果 里边的示例运行报错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(th...
来源: Laya_社区 发布时间: 20180810
...对象错误), //因此延迟一帧以销毁 Laya.timer.frameOnce(1, this, function () { this.weapon.destroy(); }); 这个延迟一帧的bug修复了吗? 目前用到的直接销毁还是会报错,不知道是不是我逻辑问题。 谢谢! 2018-03-12 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180312
... 'cursor' of undefined错误 Laya.GlowFilter is not a constructor Warning!,this class[MiniAdpter] already exist: Object {init: } 问题状态 最新活动: 2020-06-13 07:20 浏览: 723 关注: 2 人
来源: Laya_社区 发布时间: 20200518
this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray); /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...
来源: Laya_社区 发布时间: 20190523
.../com.mygame.Shjy3Android" WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix. pkg: /data/local/tmp/com.mygame.Shjy3Android Success Launching application: com.mygame.Shjy3Android/demo.MainActivity. DEVICE SHELL COMMAND: am start -D -n "com.mygam...
来源: Laya_社区 发布时间: 20170215