大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0067 秒)
...了centerX 和centerY后,就无法获取到这个Box的坐标了呀? console.log(this.test1.x ) //结果是 0 但console.log 这个对象,可以看到_x _y 的坐标 请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190701
...打开某个场景。代码示例如下: export async function main() { console.log("Hello LayaAir!"); } 如果开发者不使用启动脚本作为入口,仍然使用启动场景作为入口也是可以的,可以按照后面第二节的介绍设置脚本即可。 二、入口的逻辑脚本 ...
来源: Laya3.0_文档 发布时间: 20250103
...本的使用问题 class ScaleButton { constructor() { console.log("加载ScaleButton"); } private _owner: any; public set owner(o: laya.display.Sprite) { this._owner = o; console.log("设置owner"); } public get owner(): laya.d...
来源: Laya_社区 发布时间: 20170601
...p udp //创建server服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('connection'); }); 2019-04-23 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190423
...plete_FontLoad),null,Laya.Loader.BUFFER); function OnComplete_FontLoad() { console.log("加载字体"); var newFont = Laya.loader.getRes("font/本墨竟圆-常规.ttf"); if(Laya.Browser.window.conch) { console.log("12313131313"); Laya.Browser.window.conch.setFontFaceFromBuffer("本墨竟圆-常规",...
来源: Laya_社区 发布时间: 20180718
...Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") Laya.loader.clearRes("res/atlas/comp.json", false); Laya.loader.clearRes("res/atlas/comp.png", false); } if (e.keyCode == ...
来源: Laya_社区 发布时间: 20170317
....MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log("-----"); console.log(building); console.log("-----"); console.log(moveArea); } private playRun(): void { this.animator.play("Running"); this.animator.speed = 1.0; } private playIdle(): void { this.animator.play("...
来源: Laya_社区 发布时间: 20200917
...但是一旦导入到手机就不能正常显示。 通过打开手机的console,上面提示的错误是“request:fail invalid url...”。 附件中有微信的console截图,以及整个工程包。 附件 : --> UnityExport.zip 2018-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180519
...this.ctx.graphics.drawTexture(htmlC, 0, 0,this.ctx.width,this.ctx.height); console.log(htmlC) console.log(htmlC.getPixels(0,0,this.ctx.width,this.ctx.height)) 能搞定图片和texttrue,或者转化Uint8Array了,可是能怎么用啊?怎么转URL,保存到后台啊? 2019-11-24 1 条评论...
来源: Laya_社区 发布时间: 20191124
...ect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e.nativeEvent.offsetX ); console.log( e.nativeEvent.offsetY ); } 我设置了一个矩形,并给这个矩形增加了一个点击事件。 我发现e.nativeEvent.offsetX和e.nativeEvent.offsetY返回相对...
来源: Laya_社区 发布时间: 20180201