• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,700 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0073 秒)

281. 骨骼动画-适配版Spine [ 64%]

...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_示例 发布时间: 20241001

282. webstorm能编译ts代码到bundle.js 里面吗 [ 64%]

...便调试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

283. Cannot read property 'load' of null [ 63%]

...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

284. 材质-PBRStandard材质 [ 63%]

...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_示例 发布时间: 20241001

285. 发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 [ 63%]

... = 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

286. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 63%]

...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

287. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 63%]

...们创建一个新的3D场景时,引擎会自动添加一个主摄像机 Main Camera 在Scene3D节点下。当然也还可以添加更多的摄像机。当我们如图2-1所示,选中主摄像机时,Scene窗口中会出现一个Camera Preview窗口,用来显示主摄像机所看到的视野...

来源: Laya3.0_文档 发布时间: 20231214

288. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 62%]

...舞台上显示多个动画。 代码示例: ```typescript public class Main { private var aniPath = "res/bone/spineboy-pma.skel"; private var templet:SpineTempletBinary; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.h...

来源: Laya2.0_文档 发布时间: 20210715

289. 2.0版本Loader加载不同目录下的相同文件名的图片有问题 [ 62%]

...来的日志两个图片的路径分别是 http://usr/skin_resources/105/main1.png 和 http://usr/skin_resources/108/main1.png  2019-02-26 0 0 分享 微博 QZONE 微信 june 赞同来自: 你可以看看这个日志里面点击那个path的链接打开的图片是正确的,但是texture是同...

来源: Laya_社区 发布时间: 20190225

290. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 62%]

...件,在index.html中引用。编写以下代码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",L...

来源: Laya2.0_文档 发布时间: 20210715