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

大约有 216 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)

101. [LayaAirIDE3]2d相机打包后问题 [ 64%]

...56447350用户 赞同来自: main代码 // Main.ts - 简化版异步加载 import { CameraController } from "./CameraController"; import { Joystick } from "./Joystick"; import { Player } from "./Player";  const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {   ...

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

102. LayaAir示例项目源码编译运行指南(TypeScript-LayaAir基础篇(TS)-快速上手) [ 63%]

...的代码入口是index.ts,打开后会发现只有两行 ```typescript import { Main } from "./Main"; new Main(); ``` 通过代码,我们可以看出,默认引入了示例目录下的`main.ts`,并实例化了Main类。 这个类,其实包括了Layabox官网上所有的2D与3D线上示例...

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

103. 问一下tween的一些参数怎么设置 [ 63%]

...个缓动,使用一个变量计算缓动次数,代码如下package { import laya.display.Sprite; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); ...

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

104. 不知道这个id是怎么回事,一样的代码一会报错一会不报错。 [ 63%]

...回答 2017-11-16 0 1 分享 微博 QZONE 微信 zengjoeng 赞同来自: import {com} from "../libs/area.d.ts"; 上面代码报错,编译就不报了。 简单加一个空行,又报错。编译又不报了。   Import declarations in a namespace cannot reference a module. 2017-11-16 0 1 分享 ...

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

105. 关于Button Skin 切图问题 [ 63%]

...on 写了个简单的脚本 应该能让切图轻松一些把   mport os import math from PIL import Image  # if png pngs=[] maxWith = 0 maxHeight = 0 for idx in range(1,4): fname = os.path.join( os.path.curdir, "btn_{0}.png".format(idx)) if os.path.exists( fname) : im=Image.open( fname) pngs.app...

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

106. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 63%]

...5上就崩溃,请问怎么把之前的描边重新移 除呢?       import { PathData } from "../data/PathData"; import InsManager from "../manager/InsManager"; import { BlurEffect, BlurMaterial } from "../shader/BlurShader/BlurEffect";  export class CommandBuffer_Outline {...

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

107. ts,案例中的 子弹的脚本 [ 63%]

...? layaAirIde 的导出ui代码的脚本在哪里 laya2.0 ts脚本需要 import ** from ** 问题 laya2.0 GameConfig怎么更新有scene的脚本? 使用CreateHeightMap脚本生成高度图的时候,高度图旋转了90°是什么原因? 官方"3D角色脚本控制与碰撞检测"这个方法...

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

108. 为什么导入脚本没有此模块 [ 62%]

为什么导入脚本没有此模块 导入 import CameraMoveScript from "./common/CameraMoveScript";脚本显示没有此模块 附件 : --> 2020-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么...

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

109. 扩展脚本问题 [ 62%]

...,在class前使用关键字export default  在引用的地方使用  import XX from "XX"; 但是现在2.0中所有的脚本都要这样才能引用到吗? 2018-12-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xiaolang 相关问...

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

110. laya2.0 光照贴图? [ 62%]

...ata is not defined? laya2.0引入第三方库失败 laya2.0 ts脚本需要 import ** from ** 问题 laya2.0 runtime问题 Laya2.0导出语言包功能,导出的.lang内容为空 Laya2.0 的2d如何编写自定义shader 问题状态 最新活动: 2019-09-22 01:05 浏览: 770 关注: 1 人

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