大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0110 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
...32628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(t...
来源: Laya2.0_示例 发布时间: 20251130
...re 绘制函数不工作呢 let top_rect: Laya.Sprite = new Laya.Sprite(); top_rect.x = 0; top_rect.y = 0; top_rect.size(100, 100); top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1); ...
来源: Laya_社区 发布时间: 20190730
... //创建Texture let texture1: Laya.Texture = new Laya.Texture(texture); let a = new Laya.Sprite() //使用Sprite对象的绘制纹理方式 a.graphics.drawTexture(texture1, 0, 0); this.owner.addCh...
来源: Laya_社区 发布时间: 20230316
...tColor startPosition Methods cloneTo Properties endColor endColor: Color = new Color() Defined in laya/d3/core/pixelLine/PixelLineData.ts:15 线结束颜色 endPosition endPosition: Vector3 = new Vector3() Defined in laya/d3/core/pixelLine/PixelLineData.ts:11 线结束位置 startColor startColor: C...
来源: Laya3.0_api 发布时间: 20231115
...createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = tru...
来源: Laya2.0_示例 发布时间: 20251130
...wManager.LayoutParams.FLAG_FULLSCREEN); mProxy = new RuntimeProxy(this); mPlugin = new GameEngine(this); mPlugin.game_plugin_set_runtime_proxy(mProxy); mPlugin.game_plugin_set_option("localize","false"); mPlugin.game_plugin_se...
来源: Laya_社区 发布时间: 20170517
透明区域点击问题 var sprite0 = new Sprite(); sprite0.graphics.drawTexture(Loader.getRes("comp/image.png")); sprite0.pos(10, 10); sprite0.mouseEnabled = true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可...
来源: Laya_社区 发布时间: 20170428
...fnt与png文件同名this.mBitmapFont.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); c.将字体文件放到 LayaAir IDE 项目的资源目录中(laya/assets/) d. 6.完整代码如下所示: //初始化引擎Laya.init(550,400);//自定义文件名称this.mFontName =...
来源: Laya_社区 发布时间: 20180919
...9"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "适...
来源: Laya2.0_文档 发布时间: 20200307
... 微信 编号9527 赞同来自: private testFilter(){ let spirit = new Laya.Sprite(); this.displayObject.addChild(spirit); spirit.x = 360; spirit.y = 640; const url = "lang/zh-cn/spine/hero/zhujue_attack/zhujue_attack.skel" Laya.loader.load(url).then(()=>{...
来源: Laya_社区 发布时间: 20250821