大约有 518 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0055 秒)
...一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("re...
来源: Laya_社区 发布时间: 20180602
...谢谢? const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => { console.log('scene 2', scene.active, scene.activeInHierarchy); }); 日...
来源: Laya_社区 发布时间: 20190422
...ate onAssetLoaded(): void { // 使用texture console.log("加载结束"); } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onError(err: string):...
来源: Laya_社区 发布时间: 20240705
...d, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); }); b)、创建并编写脚本 tools-publish.js#!/usr/bin/env n...
来源: Laya_社区 发布时间: 20201223
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 ...
来源: Laya_社区 发布时间: 20190521
...); div.size(600,400); Laya.stage.addChild(div); console.log(div); var myChart = echarts.init(div.getCanvas()); // 指定图表的配置项和数据 var option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: { data:['销量'] }, xAxis: { data: ["衬衫...
来源: Laya_社区 发布时间: 20180626
.../laya/assets/comp/image.png"); Laya.stage.addChild(older); console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height); older.scale(2,2); console.log(older.scaleX,older.scaleY,older....
来源: Laya_社区 发布时间: 20170118
...aya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显...
来源: Laya_社区 发布时间: 20211026
...但是一旦导入到手机就不能正常显示。 通过打开手机的console,上面提示的错误是“request:fail invalid url...”。 附件中有微信的console截图,以及整个工程包。 附件 : --> UnityExport.zip 2018-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180519
...隔(单位:毫秒) ani.index = 0; // 当前播放索引 console.log(ani.index); ani.play(); console.log(ani.index); var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); con...
来源: Laya_社区 发布时间: 20160712