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

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

641. UI-Tab [ 43%]

...index) { console.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["../../res/ui/tab1.png", "../../res/ui/tab2.png"]; constr...

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

642. 文本-Overflow [ 43%]

...= "#ffffff"; Laya.stage.addChild(txt); return txt; } } new Text_Overflow();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Overflow { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600,...

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

643. 骨骼动画-换装 [ 42%]

...getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAn...

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

644. 网络和格式-POST [ 42%]

...te(e) { logger.text += "收到数据:" + hr.data; } } new Network_POST();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import HttpRequest = Laya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_POST { private...

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

645. 网络和格式-GET [ 42%]

...ete(e) { logger.text += "收到数据:" + hr.data; } } new Network_GET();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import HttpRequest = Laya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_GET { private ...

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

646. UI-Tab [ 42%]

...onsole.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/tab1.png", "res/ui/tab2.png"]; constructor(){ // ...

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

647. Sprite-切换纹理 [ 42%]

...this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { ...

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

648. Sprite-绘制各种形状 [ 42%]

...rcTo", 0, 0, 5, 0, 5], ["closePath"] ], { fillStyle: "#00ffff" }); } })(); module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 40...

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

649. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 42%]

...用LayaAir引擎绘制矢量曲线,示例代码如下: ```typescript module laya {     import Sprite = Laya.Sprite;     import Stage = Laya.Stage;     import WebGL = Laya.WebGL;        export class Sprite_DrawShapes {         private sp: Sprite;     ...

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

650. Sprite-绘制各种形状 [ 42%]

...], ["closePath"] ], { fillStyle: "#00ffff" }); } } new Sprite_DrawShapes();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 40...

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