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

大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0169 秒)

451. 屏幕适配-自动竖屏 [ 84%]

...32628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; 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(te...

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

452. 屏幕适配-自动横屏 [ 84%]

...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_示例 发布时间: 20260303

453. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 84%]

...        //创建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

454. drawToTexture 绘制函数不工作呢 [ 84%]

...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

455. laya.d3.core.pixelline.PixelLineData_API3.0 [ 84%]

...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

456. 文本-字数限制 [ 84%]

...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_示例 发布时间: 20260303

457. typeScript Java互调问题 [ 84%]

...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

458. 透明区域点击问题 [ 84%]

透明区域点击问题 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

459. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 84%]

...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

460. 屏幕适配的缩放模式详解(JavaScript-2D基础篇(JS)-屏幕适配) [ 84%]

...9";             //实例一个背景         var bg = new Image();         bg.skin = "res/img/loadingBg.jpg";         Laya.stage.addChild(bg);               //实例一个文本         txt = new Text();         txt.text = "适...

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