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

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

621. 骨骼动画-换装 [ 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_示例 发布时间: 20241001

622. 网络和格式-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_示例 发布时间: 20241001

623. 网络和格式-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_示例 发布时间: 20241001

624. 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_示例 发布时间: 20241001

625. 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_示例 发布时间: 20241001

626. 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_示例 发布时间: 20241001

627. 绘制曲线(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

628. 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_示例 发布时间: 20241001

629. UI-Slider [ 42%]

...nction onChange(value) { console.log("滑块的位置:" + value); } })();module laya { import Stage = Laya.Stage; import HSlider = Laya.HSlider; import VSlider = Laya.VSlider; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Slider { constructor(){ // 不支持WebGL时自...

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

630. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...出符合自己项目中需要的Clip。 **示例代码:** ```typescript module laya { import Stage = Laya.Stage; import Button = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: st...

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