大约有 1,400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...) 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内...
来源: Laya_社区 发布时间: 20180801
...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
...态图像 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
...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
...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
...的API参数:   ```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
...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
...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
...}, 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
...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