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

大约有 95 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0026 秒)

11. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 74%]

...置编译的时候会报错:This syntax requires an imported helper but module 'tslib' cannot be found 开发群里有大神提供了一种解决办法: 右键 LayaAirIDE.app->显示包内容,定位到 Contents->Resources->app->node_modules->rollup->dist->rollup.js 修改...

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

12. 颜色滤镜 差值变化 [ 72%]

颜色滤镜 差值变化 /** * leo */ module touch {     /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool =...

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

13. 文本基础样式(TypeScript-LayaAir基础篇(TS)-文本) [ 71%]

...文本样式的API参数: ![1](img/1.png) ![2](img/2.png) ```typescript module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browse...

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

14. 其他引擎的Demo-Example_21 [ 71%]

...) { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } })();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F...

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

15. UI-Label [ 71%]

...okeColor = strokeColor; } Laya.stage.addChild(label); return label; } })();module laya { import 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 = ...

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

16. 其他引擎的Demo-Example_21 [ 70%]

...ear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F...

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

17. UI-Label [ 70%]

...WIDTH; label.strokeColor = strokeColor; } return label; } } new UI_Label();module laya { import 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 = ...

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

18. 区块地图-等角地图 [ 68%]

...iusX, radiusY, 0, radiusY * 2, color); Laya.stage.addChild(sprite); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handl...

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

19. 区块地图-等角地图 [ 68%]

...olor); Laya.stage.addChild(this.sprite); } } new TiledMap_IsometricWorld();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handl...

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

20. 屏幕适配-自动横屏 [ 66%]

... = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_Landscape { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage...

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