大约有 678 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(427) Laya2.0_文档(65) Laya3.0_api(61) Laya2.0_api(57) Laya_示例(44) Laya3.0_文档(20) laya_api(4)
...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
...不能正常显示的问题 IDE编辑模式,一片黑,打不开 修改stage的scale后,会发生异常情况 请问有人遇到oppo小游戏字体显示异常 问题状态 最新活动: 2019-07-30 11:37 浏览: 688 关注: 1 人
来源: Laya_社区 发布时间: 20190730
...我也不知道哪里引起的,没法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛
来源: Laya_社区 发布时间: 20170829
...,反而有点像GameObject的感觉,但是吧又有个Node类; 然后吧,Stage和Scene竟然继承了SPrite,看的我一脸晕.UE4都没设计的这么复杂吧; 看有三个场景Scene3d,为啥要分开设计呢?2D和3D明明是一个概念吧 我不是在喷啊,只是感觉设计都可能以前是...
来源: Laya_社区 发布时间: 20190521
... sk.pos(200,200) Laya.stage.addChild(sk); })) Laya.timer.once(2000,this,function(){ sk.destroy(true) ...
来源: Laya_社区 发布时间: 20180828
... + "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
... 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
...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
....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
...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