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

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

211. 文本-多行输入 [ 79%]

...fff"; inputText.fontSize = 20; } } new Text_InputMultiline();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_InputMultiline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.cl...

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

212. 加载-错误处理和进度 [ 79%]

...载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 ...

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

213. 文档教程设置遮罩的导入出错 [ 79%]

...果   创建一个入口类MaskDemo.ts,编码如下: module laya { import Loader = Laya.Loader; import Handler= Laya.Handler; import maskDemoUI = ui.maskDemoUI;这里 import maskDemoUI = ui.maskDemoUI;报错 [ts] Property 'maskDemoUI' does not exist on type 'typeof ui'. [ts] Namespace 'laya....

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

214. 骨骼动画-藤蔓 [ 79%]

...{ 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 Skeleton_SpineVine { private mAniPath:...

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

215. 分享:Dragonbones/Spine的换肤操作 [ 79%]

...辑,已经详细解释每步代码的含义,此处不累述package { import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public cla...

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

216. 骨骼动画-橡胶人 [ 79%]

...{ 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 Skeleton_SpineStretchyman { private mA...

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

217. Sprite-根据数据绘制路径 [ 79%]

...e.width / 2, Laya.stage.height / 2, path, "#FF7F50"); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_DrawPath { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clie...

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

218. 输入设备-摇一摇 [ 79%]

...+= "停止接收设备摇动"; } } } new InputDevice_Shake();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Shake = Laya.Shake; import Browser = Laya.Browser; import Handler = Laya.Handler; import Event = Laya.Event; export class InputDevice_Sha...

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

219. Sprite-根据数据绘制路径 [ 79%]

...tage.height / 2, path, "#FF7F50"); } } new Sprite_DrawPath();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_DrawPath { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clie...

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

220. Sprite-切换纹理 [ 79%]

...交互区域 ape.size(texture.width, texture.height); } })();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 { private textur...

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