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

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

351. AS版本生成的js中出现了this.Buffer() [ 64%]

...) 请问2.0的版本开始,我用ts编写的相关内容,都要使用importexport吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内...

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

352. UI-Tree [ 64%]

...height - tree.height) / 2; Laya.stage.addChild(tree); } })();module laya { import Stage = Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL...

来源: Laya_示例 发布时间: 20260303

353. UI-Tree [ 64%]

....x = 0; arrow.y = 5; this.addChild(arrow); } } new UI_Tree();module laya { import Stage = Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL...

来源: Laya2.0_示例 发布时间: 20260303

354. laya3.0中jszip使用异常 [ 64%]

...index.d.ts复制到dist目录下,改为jszip.d.ts,导入代码为: import * as JSZip from "../node_modules/jszip/dist/jszip"使用代码为: let zipUrl = "resources/files/config.zip";         Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, th...

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

355. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 64%]

...自己需要的列表。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import List = Laya.List; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_List { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.sta...

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

356. 输入设备-地图 [ 63%]

...ISSION_DENIED) alert("无权限"); } } new InputDevice_Map();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Geolocation = Laya.Geolocation; import Position = Laya.GeolocationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; export class InputDevice_Map { /...

来源: Laya2.0_示例 发布时间: 20260303

357. 1.7.16beta版本,导入GlowFilter包会报错。 [ 63%]

1.7.16beta版本,导入GlowFilter包会报错。 导包 import laya.filters.GlowFilter; 会报错“exception info:[TypeError: undefined is not an object (evaluating 'SaveBase._createArray')] at line 6155”。 只是导包,还没使用任何滤镜。 2018-02-06 添加评论 免费帖 --> 分...

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

358. 鼠标交互-鼠标交互 [ 63%]

...rue; txt.color = "#FFFFFF"; Laya.stage.addChild(txt); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constru...

来源: Laya_示例 发布时间: 20260303

359. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 63%]

...题 请问2.0的版本开始,我用ts编写的相关内容,都要使用importexport吗? LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) LayaTree v1.0.5版本更新(2021.11.17) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调...

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

360. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 63%]

...: 与内容相关的链接 提交 1 个回复 Veni vidi vici 赞同来自: import GameConfig from "../../../GameConfig"; import { SingleBase } from "../../../lib/base/SingleBase"; import DdzFarmersAni from "./DdzFarmersAni";  export default class DdzLandlordAni extends SingleBase{   private mFacto...

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