大约有 342 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
... onStart() { //@ts-ignore window.camera = this.camera; console.log("Game start", this.camera._up); console.log( "Game start", this.camera._up.x, this.camera._up.y, this.camera._up.z ); } } 附件 : --> testProject.zip 2024-10-29 ...
来源: Laya_社区 发布时间: 20241029
...cene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用? 2017-06-19 添...
来源: Laya_社区 发布时间: 20170619
...在 但是 并没有 publishProWin3属性 是在 IDE的谷歌tools的 console里面加入的 上午我就试了 2019-06-04 0 1 分享 微博 QZONE 微信 k642015631 赞同来自: 已上传日志 Laya日志.zip 2019-06-04 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...
来源: Laya_社区 发布时间: 20190603
...nH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; console.log("load"); Laya.loader.create("TestScene/TestScene.ls", Laya.Handler.create(this, this.LoadSceneComplete)); } LoadSceneComplete() { console.log("finish") let scene: Laya.Scene = Laya.loader.getRes("TestScene/TestSce...
来源: Laya_社区 发布时间: 20171227
...了centerX 和centerY后,就无法获取到这个Box的坐标了呀? console.log(this.test1.x ) //结果是 0 但console.log 这个对象,可以看到_x _y 的坐标 请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190701
...0, 500, WebGL); Laya.stage.bgColor = "#ffffff"; console.log(Laya.Render._mainCanvas); Laya.Render._mainCanvas.source.style.top = "50px"; this.setup(); const parent = document.getElementById("preview"); const child = document.g...
来源: Laya_社区 发布时间: 20201130
...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
...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.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); console.log(item1 == item2); } } export class TestClass { type = 0; } exp...
来源: Laya_社区 发布时间: 20250819
...tring:string = "./sounds/hit.wav"; private onPlayMusic(e: Event): void { console.log("播放音乐"); SoundManager.playMusic(this.musicString, 1, new Handler(this, this.onComplete)); } private onPlaySound(e: Event): void { console.log("播放音效"); SoundManager.playSound(this.soundString, 1, ...
来源: Laya_社区 发布时间: 20190421