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

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

191. AS版本生成的js中出现了this.Buffer() [ 80%]

...) 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内...

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

192. Sprite-显示图片 [ 80%]

...Texture(monkey2, 100, 0); })); } } new Sprite_DisplayImage();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() ...

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

193. Sprite-缓存为静态图像 [ 80%]

...态图像 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时自动切换至Canvas Laya.i...

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

194. 文本-禁止编辑 [ 80%]

...utText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Editable { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...

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

195. 骨骼动画-适配版Spine [ 80%]

...ex = 0; } this.skeleton.play(this.index, false, true); } } new SpineBinary;import Browser = Laya.Browser; import WebGL = Laya.WebGL; import Stage = Laya.Stage; import Event = Laya.Event; import Stat = Laya.Stat; import SpineTemplet = Laya.SpineTemplet;//3.8之后特有的,适用结尾为.skel的...

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

196. 文本基础样式(ActionScript-LayaAir基础篇(AS3)-文本) [ 80%]

...的API参数: ![1.png](img/1.png) ![2.png](img/2.png) ```java package { import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var txt:Text = new Text(); txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); }...

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

197. 文本-单行输入 [ 79%]

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

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

198. Sprite-旋转缩放 [ 79%]

...cale(scaleValue, scaleValue); } } new Sprite_RoateAndScale();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number ...

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

199. 鼠标交互-自定义事件 [ 79%]

...}, 1000, Ease.elasticOut); } } new Interaction_CustomEvent();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Ease = Laya.Ease; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomE...

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

200. 文本-位图字体 [ 79%]

...a.stage.height - txt.height >> 1); } } new Text_BitmapFont();module laya { import BitmapFont = Laya.BitmapFont; import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Text_BitmapFont { private fontName...

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