大约有 2,121 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
...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_示例 发布时间: 20251209
....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_示例 发布时间: 20251209
...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
...自己需要的列表。 **示例代码:** ```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
...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_示例 发布时间: 20251209
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
...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_示例 发布时间: 20251209
...题 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) LayaTree v1.0.5版本更新(2021.11.17) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调...
来源: Laya_社区 发布时间: 20241101
...: 与内容相关的链接 提交 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
...题 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 纹理平铺怎么做 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 用二的幂次方图集和非二的幂次方图集区别在哪? LayaAirIDE下...
来源: Laya_社区 发布时间: 20250801