大约有 513 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
...888启动服务器,浏览器访问localhost:8888 等界面显示之后在console中输入test() 这会创建两张牌,第一张牌在右侧,第二张在左侧。 第一张牌使用了localRotation,可以看到旋转无效了,console中的matrix也可以看到是不变的 第二张牌直接...
来源: Laya_社区 发布时间: 20170323
...st01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); target.transform.position = translate; target.tra...
来源: Laya_社区 发布时间: 20191206
...行,分包内的game.js 和main.js里面有一行 "use strict";console.log("subRes loaded;");这个就行了,我这边是这样 1597917359用户 • 2021-01-20 14:47 我这个 里面有main。js 是为什么呢 1597917359用户 • 2021-01-23 16:44 您好 是需要两个js文...
来源: Laya_社区 发布时间: 20201204
...(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.p...
来源: Laya_社区 发布时间: 20170619
...re 赞同来自: 自己研究中,好像是物理没有开启导致的, console.log(Laya3D.enbalePhysics);结果是false 问题是怎么开启物理?看源码这个enablePhysics是根据是否存在window.Physics3D而设置的。 那么问题是怎么让window.Physics3D存在呢? 文档没找...
来源: Laya_社区 发布时间: 20190321
...数据 list.dataSource = data; } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = laya.ui.Box; import Image = laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public stati...
来源: Laya_社区 发布时间: 20180410
...ge.height), Handler.create(this, this.mapLoaded)); // console.log(Laya.stage.width, Laya.stage.height); // // })); // } // private onStageClick (): void // { // var p: Point = new Point(0, 0); // this.lay...
来源: Laya_社区 发布时间: 20201230
...EY_DOWN,LayaSample,Test); } function Test(e){ console.log(e.keycode); } 按下按键后一直输出undefined,在入口类里面却能输出对应按键编号,是什么原因呢 2018-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20180208
..."comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private parseComplete() { //从动画模板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0,...
来源: Laya_社区 发布时间: 20180905
...der.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (im...
来源: Laya_社区 发布时间: 20191122