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

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

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

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

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

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

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

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

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

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

649. 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

650. 新手引导在ios浏览器表现异常 [ 42%]

新手引导在ios浏览器表现异常 代码: module laya  {     export class Sprite_Guide      {         private width = 750;         private height = 1334;         constructor()          {             Laya3D.init(this.width, this...

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