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

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

341. 输入设备-指南针 [ 87%]

...高效。let compassImgPath = "res/inputDevice/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自...

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

342. 屏幕方向:自动横屏与自动竖屏的设置详解(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 87%]

... -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Laya.Label = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scal...

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

343. Laya引擎bug [ 87%]

...  *分析文本换行。     */     __proto.parseLines=function(text){         var needWordWrapOrTruncate=this.wordWrap || this.overflow==Text.HIDDEN;         if (needWordWrapOrTruncate){             var wordWrapWidth=this.getWordWrapWidth();         } ...

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

344. Label Text控件 无法显示全子图 [ 87%]

Label Text控件 无法显示全子图 如图所示 这个字体无法显示完全 p g j q这种都会被截掉一些,与label的高度没关系 附件 : --> NotoSans2.zip 2019-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

345. laya.display.cmd.FillTextCmd_API3.0 [ 86%]

...d All Inherited Externals Only exported Menu Globals "laya/display/cmd/FillTextCmd" FillTextCmd Class FillTextCmd 绘制文字 Hierarchy FillTextCmd Index Properties x y ID Accessors align color font stroke strokeColor text Methods recover create Properties x x: number = 0 Defined in laya/display/cm...

来源: Laya3.0_api 发布时间: 20231115

346. 输入设备-地图 [ 86%]

...AirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Geolocation = Laya.Geolocation; var Position = Laya.Position; var Browser = Laya.Browser; var Handler = Laya.Handler; // 百度地图 var map; var marker; var BMap = Browser.window.BMap; var convertor = ...

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

347. 渲染性能实例问题 [ 86%]

...rite 不可以addChild. Laya.init(550,400,Laya.WebGL);Laya.Stat.show();var textBox = new Laya.Sprite();for(var i=0;i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(tex...

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

348. 屏幕方向:自动横屏与自动竖屏的设置详解(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 86%]

... -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Label = new Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } } } ``` #### 关于常量的写法: 如果开发者...

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

349. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 86%]

[LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 输入框得到焦点后,输入的内容都是蓝色的字,失去焦点后变回设置的颜色,而整个流程中我并没有设置过蓝色字。import { ui } from "../../ui/layaMaxUI"; import GameData from "../game/GameData";...

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

350. 用Transform和直接设置xy坐标的效果不一致 [ 86%]

...sform不正确。在LayaAir1.x两个效果都是一致的。 let txt: Laya.Text = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt);          txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya...

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