大约有 1,254 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0048 秒)
...;module laya { import Loader = Laya.Loader; import Handler = Laya.Handler; export class Loader_MultipleType { private ROBOT_DATA_PATH: string = "../../res/skeleton/robot/robot.bin"; private ROBOT_TEXTURE_PATH: string = "../../res/skeleton/robot/texture.png"; constructor() { Laya.init(100, 100); var ...
来源: Laya_示例 发布时间: 20250311
...;module laya { import Loader = Laya.Loader; import Handler = Laya.Handler; export class Loader_MultipleType { private ROBOT_DATA_PATH: string = "res/skeleton/robot/robot.bin"; private ROBOT_TEXTURE_PATH: string = "res/skeleton/robot/texture.png"; constructor() { Laya.init(100, 100); var assets: Arra...
来源: Laya2.0_示例 发布时间: 20250311
...信 雄二 赞同来自: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 ...
来源: Laya_社区 发布时间: 20241101
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/net/Downloader" Downloader Class Downloader Hierarchy Downloader Index Properties httpRequestPool Methods audio common image imageWithBlob imageWithWorker Properties httpRequestPool httpRequestPool...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,...
来源: Laya3.0_api 发布时间: 20231115
新手引导在ios浏览器表现异常 代码: module laya { export class Sprite_Guide { private width = 750; private height = 1334; constructor() { Laya3D.init(this.width, this...
来源: Laya_社区 发布时间: 20200119
... Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_...
来源: Laya2.0_示例 发布时间: 20250311
...中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始...
来源: Laya3.0_文档 发布时间: 20240910
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Viewport" Viewport Class Viewport Viewport 类用于创建视口。 Hierarchy Viewport Index Constructors constructor Properties height maxDepth minDepth width x y _tempViewport Methods clo...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/particleShuriKen/module/FrameOverTime" FrameOverTime Class FrameOverTime FrameOverTime 类用于创建时间帧。 Hierarchy FrameOverTime Implements IClone Index Constructors constructor A...
来源: Laya3.0_api 发布时间: 20231115