大约有 2,802 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)
... 图片为运行的结果 import GameConfig from "./GameConfig"; class Main { //private scene:Laya.Scene3D; private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor() { this._upVector3 = new Laya.Vector3(0, 1...
来源: Laya_社区 发布时间: 20190531
...at new Texture (http://127.0.0.1:10656/game/js/bundle.js:15001:8) at Main.<anonymous> (http://127.0.0.1:10656/game/js/bundle.js:1196:16) at TimerHandler.__proto.run (http://127.0.0.1:10656/game/js/bundle.js:8352:45) at Timer.__proto._update (http://127.0.0.1:10656/game/js/bun...
来源: Laya_社区 发布时间: 20181123
Laya2.0导入protobufjs第三方库,报错找不到文件 Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = tru...
来源: Laya_社区 发布时间: 20190228
...neSkeleton; import laya.events.Event; import laya.utils.Stat; public class Main { private var aniPath = "res/bone/spineboy-pma.skel"; private var templet:SpineTemplet; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height...
来源: Laya2.0_示例 发布时间: 20260303
...便调试ts源码,但会影响编译速度 debug: true, entries: ['src/Main.ts'], cache: {}, packageCache: {} }) //使用tsify插件编译ts .plugin(tsify) .bundle() //使用source把输出文件命名为bundle.js .pipe(source('bundle.js')) //把bundle.js复制到bin/js目录 .pipe(gulp.dest(workS...
来源: Laya_社区 发布时间: 20181221
...oader是null,为什么会出现为null的情况? 代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new Ma...
来源: Laya_社区 发布时间: 20171124
...t.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/sky...
来源: Laya_示例 发布时间: 20260303
... = require('fs'); var Stacktracey = require('stacktracey'); async function main() { // const errorStack = "at t.ClearYeMan (http://cangqiong.17dawan.com/v ... 341015)"; // 错误信息 const tracey = new Stacktracey(errorStack); // 解析错误信息 const { readFileSync } = fs; for(const ...
来源: Laya_社区 发布时间: 20190528
...nitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Connecting to com.layabox.game Capturing and displaying logca...
来源: Laya_社区 发布时间: 20171218
...们创建一个新的3D场景时,引擎会自动添加一个主摄像机 Main Camera 在Scene3D节点下。当然也还可以添加更多的摄像机。当我们如图2-1所示,选中主摄像机时,Scene窗口中会出现一个Camera Preview窗口,用来显示主摄像机所看到的视野...
来源: Laya3.0_文档 发布时间: 20251010