大约有 708 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0048 秒)
Laya_社区(412) Laya_示例(95) Laya2.0_示例(94) Laya2.0_文档(31) laya_api(24) Laya3.0_api(23) Laya2.0_api(23) Laya3.0_文档(6)
...oader.maxLoader = 5; console.log("All done."); } } } new Loader_Sequence();module laya { import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_Sequence { private numLoaded: number = 0; private resAmount: number = 3; constructor() { Laya.init(500, 400); // 按序列加载 ...
来源: Laya2.0_示例 发布时间: 20241119
... 1; txt.y = Laya.stage.height - txt.textHeight >> 1; } } new Text_Scroll();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_WordWrap { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Brow...
来源: Laya2.0_示例 发布时间: 20241119
...了吗?各种获取不到宽高!!! 之前2.0的时候在tsconfig里module:"amd",然后代码都可以用require.js模块化的,也不会有问题,现在用这种模式基本上就用不了了,我上传一个demo,希望可以帮忙看一下是什么问题导致的?? ps:vscode...
来源: Laya_社区 发布时间: 20191115
...Picker) { console.log(colorPicker.selectedColor); } } new UI_ColorPicker();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ColorPicker { private skin: string = "re...
来源: Laya2.0_示例 发布时间: 20241119
...umber) : void { cell.publicSpaceData = cell.dataSource; } module gamepublicspaceitem { export class PublicSpaceItem extends Laya.Box { public static BTN_ENTRER_CLICK:string = "BtnEnterClick"; public _publicSpaceData:datasheet.PublicSpaceData; private bg:Laya.Image; ...
来源: Laya_社区 发布时间: 20170923
...addChild(p); p.href = "res/html/test.html"; p.y = 200; } } new Text_HTML();module laya { import Stage = Laya.Stage; import HTMLDivElement = Laya.HTMLDivElement; import HTMLIframeElement = Laya.HTMLIframeElement; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_HTML { const...
来源: Laya2.0_示例 发布时间: 20241119
...align = "middle"; text.align = "center"; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Br...
来源: Laya_示例 发布时间: 20241119
...etRes("res/apes/monkey2.png"); // 使用资源 } } new Loader_SingleType();module laya { import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_SingleType { constructor() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("r...
来源: Laya2.0_示例 发布时间: 20241119
... methods 07-16 13:28:38.922 1760-1760/? E/memtrack: Couldn't load memtrack module (No such file or directory) 07-16 13:28:38.922 1760-1760/? E/android.os.Debug: failed to load memtrack module: -2 07-16 13:28:38.952 1760-1760/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am 07-16 13:...
来源: Laya_社区 发布时间: 20190716
... BlurFilter(); blurFilter.strength = 5; ape.filters = [blurFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import BlurFilter = Laya.BlurFilter; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Blur { p...
来源: Laya_示例 发布时间: 20241119