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

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

201. 【Native BUG】Native下对根结点设置filter,无法更新到每个子节点,web是ok的 [ 75%]

...生效。但text在添加filter的时候仍然无效。只有手动设置color才能生效。   public static setGray(node: Laya.Node, set: boolean) {             for (var i = 0; i < node.numChildren; i++) {                 let sprite = node.getChildAt(i) as Laya.Sprite;       ...

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

202. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...字体需要频繁修改,可以勾选此项以提升性能 文本颜色 color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 自适应大小 fit content 否("no"):无操作;高度和宽度("yes"):Label边框...

来源: Laya3.0_文档 发布时间: 20251010

203. 同一类型光源互斥的问题报告 [ 75%]

....lookAt(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 1, 0)); camera.clearColor = new Laya.Vector3(0.3, 0.3, 0.5); camera.addComponent(CameraMoveScript); //创建点光[左下角]------------ 这个不生效,除非注释掉light2 var light1 = scene.addChild(new Laya.PointLight()); light1.transfor...

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

204. LayaAir开发笔记(1)五十音图连连看 [ 75%]

... <title>五十音图对对碰</title> </head> <body bgcolor="gainsboro"> </body> <script src="libs/laya.core.js"></script> <script src="linkgame.js"></script> </html> 再建立个linkgame.js,用下列代码进行初始化。个人建议...

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

205. LAYA的AS3项目碰见个问题,求解 [ 75%]

...通用VIEW。 myTextsUI: <View sceneWidth="100" sceneHeight="20" sceneColor="#000000" editorInfo="compId=1">    <Text y="0" x="0" var="txts" text="text" fontSize="12" editorInfo="compId=2"/> </View>   mytexts.as: public class myTexts extends myTextsUI        public functio...

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

206. 屏幕适配-自动竖屏 [ 75%]

...SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; 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 - ...

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

207. 屏幕适配-自动横屏 [ 75%]

...ALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; 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 -...

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

208. 文本-单行输入 [ 75%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height...

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

209. 文本-字数限制 [ 75%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.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; ...

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

210. 文本-禁止编辑 [ 75%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height...

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