大约有 874 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(573) Laya2.0_文档(114) Laya3.0_api(79) Laya3.0_文档(74) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...会停 • 2018-12-12 14:29 窗体是继承Laya.Dialog的,无法像Laya.scene那样加控制脚本,this.getComponent(xx),取不到控制类,何解?
来源: Laya_社区 发布时间: 20181211
...active=true的情况。 因为mesh的active=false,然后就会调用到scene的render的remove。而SimpleSingletonList会获取element的indexinlist,但由于可能并没有进过add,所以这时候获得的index是-1,SimpleSingletonList的remove会继续进过逻辑: var end = this.el...
来源: Laya_社区 发布时间: 20220707
...,不要用默认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere...
来源: Laya2.0_文档 发布时间: 20210714
...,不要用默认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere...
来源: Laya2.0_文档 发布时间: 20210715
...适应屏幕大小,应该怎么弄呢 运行报错 Uncaught Can not find scene:GameView.scene undefined 适配微信小游戏资源一直提示资源加载不出来 问题状态 最新活动: 2017-12-02 11:05 浏览: 1185 关注: 2 人 klm123698745 • 2017-12-04 17:09 哥们 有时间帮我看一...
来源: Laya_社区 发布时间: 20171202
...ght PointLight SpotLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedType mode numChildren parent scene shadowDept...
来源: Laya3.0_api 发布时间: 20231115
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; let scene = Laya.stage.addChild(new Laya.Scene()); let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, fals...
来源: Laya_社区 发布时间: 20190301
...折叠 要回复问题请先登录 发起人 大林 相关问题 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 IDE编辑模式,一片黑,打不开 横屏模式在锁定竖屏的iphone上不能正常显示的问题 mac 用layaair2.0 ide ...
来源: Laya_社区 发布时间: 20180910
...onst extendLib: IExtendLib = Laya.importNative("steam_demo.dll"); 然后在Scene2D上新建一个组件脚本,当点击按钮时,完成初始化。 import { extendLib } from "./extlib"; const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type:...
来源: Laya3.0_文档 发布时间: 20251010
...1时,效果如图1-6所示。 (图1-6) 1.3 脚本控制RadioGroup 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将RadioGroup拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制RadioGroup: const { regClass, property...
来源: Laya3.0_文档 发布时间: 20251016