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

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

461. laya.ui.TextArea_API3.0 [ 60%]

...extArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea =...

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

462. 浅色主题在编辑模式中异常 [ 60%]

...不能正常显示的问题 IDE编辑模式,一片黑,打不开 修改stage的scale后,会发生异常情况 请问有人遇到oppo小游戏字体显示异常 问题状态 最新活动: 2019-07-30 11:37 浏览: 688 关注: 1 人

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

463. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 60%]

...我也不知道哪里引起的,没法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛

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

464. 为什么引擎的类设计的这么复杂 [ 59%]

...,反而有点像GameObject的感觉,但是吧又有个Node类; 然后吧,Stage和Scene竟然继承了SPrite,看的我一脸晕.UE4都没设计的这么复杂吧; 看有三个场景Scene3d,为啥要分开设计呢?2D和3D明明是一个概念吧 我不是在喷啊,只是感觉设计都可能以前是...

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

465. sk文件加载 [ 59%]

...           sk.pos(200,200)                 Laya.stage.addChild(sk);             }))                                        Laya.timer.once(2000,this,function(){                 sk.destroy(true)        ...

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

466. HTML文本 · LayaAir3.0文档 · LAYABOX [ 59%]

... + "LayaBox</span><span>欢迎你的加入</span>"; Laya.stage.addChild(div); 运行效果: 3.2 同一个文本中设置字体、颜色不同 示例如下: var htmlD:HTMLDivElement = new HTMLDivElement(); Laya.stage.addChild(htmlD); htmlD.innerHTML = "<font style='fontSize:3...

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

467. sprite.mask的疑问 [ 59%]

...      private a ()     {         let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite;         let b:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("B") as Sprite;         b.removeSelf();         a.ma...

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

468. 音频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...nAwake(): void { let sound = new Laya.SoundNode(); // 添加到舞台 Laya.stage.addChild(sound); sound.source = "resources/sound.wav"; //音频路径 sound.loop = 0; //循环次数设置,要放在autoPlay参数设置前 sound.autoPlay = true; //自动播放 sound.isMusic = false; //是否为背...

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

469. 使用3D摄像机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

....x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠...

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

470. 自定义shader-shader预编译 [ 59%]

...ce.models.Mesh; import laya.d3.shader.ShaderCompile3D; import laya.display.Stage; import laya.utils.Stat; import laya.webgl.WebGL; public class ShaderPrecompile { public function ShaderPrecompile() { Laya3D.init(0, 0, true); //开启Shader编译调试模式,可在输出宏定义编译值。 Shader...

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