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

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

41. 计时器-延迟调用 [ 63%]

...align = "middle"; text.align = "center"; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Br...

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

42. Sprite-缓存为静态图像 [ 63%]

...图像 textBox.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Sprite_Cache { constructor() { // 不支持WebGL时自动切换至...

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

43. 计时器-延迟调用 [ 63%]

...ext.align = "center"; Laya.stage.addChild(text); } } new Timer_CallLater();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Br...

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

44. Sprite-缓存为静态图像 [ 63%]

...//缓存为静态图像 textBox.cacheAs = "bitmap"; } } new Sprite_Cache();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Sprite_Cache { constructor() { // 不支持WebGL时自动切换...

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

45. 使用laya官方示例代码制作微信小游戏无法显示 [ 62%]

...微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler 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_社区 发布时间: 20180529

46. 混合模式-Lighter [ 62%]

...tring(16); b = b.length == 2 ? b : "0" + b; return "#" + r + g + b; } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Browser = Laya.Browser; import Handler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { ...

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

47. 文本-下划线 [ 62%]

...nderlineColor; txt.pos(x, y); Laya.stage.addChild(txt); return txt; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class Text_Underline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 400, WebGL); Laya.stage.align...

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

48. 混合模式-Lighter [ 62%]

...th == 2 ? b : "0" + b; return "#" + r + g + b; } } new BlendMode_Lighter();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Browser = Laya.Browser; import Handler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { ...

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

49. 文本-下划线 [ 61%]

...olor = underlineColor; txt.pos(x, y); return txt; } } new Text_Underline();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class Text_Underline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 400, WebGL); Laya.stage.align...

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

50. 文本-复杂的文本样式 [ 61%]

...(Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_ComplexStyle { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(...

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