大约有 507 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
...OADED, this, function (sceneTemp) { var camera = sceneTemp.getChildByName("Main Camera"); camera.transform.translate(new Laya.Vector3(0, 0, 200)); //移动camera });2.问题2:加载完看官方的demo要加相机和灯光,这个怎么不用加灯光和相机都能显示出来呢? 答:1)这...
来源: Laya_社区 发布时间: 20170828
.../66.0.3359.126 MQQBrowser/6.2 T 代码如下,另附上demo class Main { private _roomId = 0; constructor(roomId?: number) { this._roomId = roomId; Laya.init(750, 1218, Laya.WebGL); Laya.Browser.document.title = '...
来源: Laya_社区 发布时间: 20181208
...的结构和框架,我们只需要修改部分细节即可 首先修改 Main下面的 方法 file:///blog/asroads.github.io/source/_posts/game/LayaAir2-0-LayaBox-%E4%B9%8B%E5%B0%8F%E6%B8%B8%E6%88%8F%E5%BC%80%E6%94%BE%E5%9F%9F%E5%BC%80%E5%8F%91/image-20190307200032836.png?lastModify=1551962708class...
来源: Laya_社区 发布时间: 20190307
...eDir 07-04 20:55:27.117: D/RuntimeProxy(7884): laya_get_value key=ExpansionMainPath 07-04 20:55:27.117: D/RuntimeProxy(7884): laya_get_value key=ExpansionPatchPath 07-04 20:55:27.117: I/layaConch3(7884): m_interceptKey OK! 07-04 20:55:27.117: E/LayaConch5(7884): >>>>>>>conchjar ...
来源: Laya_社区 发布时间: 20190704
...动chrome出现错误: Error processing launch: Error Could not attach to main target 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 请问下loader如何强制加...
来源: Laya_社区 发布时间: 20200110
...码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性...
来源: Laya3.0_文档 发布时间: 20251010
...动chrome出现错误: Error processing launch: Error Could not attach to main target Laya中的宏编译要怎么用啊 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。...
来源: Laya_社区 发布时间: 20200606
...SBridge convertToJsonData:dict]; dispatch_async(dispatch_get_main_queue(), ^{ AppDelegate * appDelegate = (AppDelegate*)[UIApplication sharedApplication].delegate; [appDelegate.launchView setBackgroundColor:color]; }); return res; } + (NSString *)...
来源: Laya_社区 发布时间: 20201209
...台 Laya.stage.addChild(_Scene3D); let _camera = _Scene3D.getChildByName("Main Camera") as Laya.Camera; _camera.clearFlag = Laya.CameraClearFlags.Sky; //从场景中找到圆柱对象 let _cylinder = _Scene3D.getChildByName("Cylinder"); //从圆柱对象上获得刚体碰撞器(对应Unity的刚...
来源: Laya2.0_文档 发布时间: 20210715
...现如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { @property( { type : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya...
来源: Laya3.0_文档 发布时间: 20241014