大约有 724 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0078 秒)
Laya_社区(506) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(19) Laya3.0_文档(16) Laya2.0_示例(2) Laya_示例(2)
... 2 个回复 Laya_XS 赞同来自: 你可以针对item里面的组件单独设置事件,比如你在renderHandler渲染组件的时候,通过item拿到item里面的特定组件,然后加事件这里就不用说了,应该了解了!比如代码 方法一: function renderHandler(item:box,in...
来源: Laya_社区 发布时间: 20171128
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoDestroyAtClosed autoDestroyAtClosed: boolean = false Defined in laya/display/Scene.ts:25 场景被关闭后,是否自动销...
来源: Laya3.0_api 发布时间: 20231115
...下也只能挂一个,记得2.x也是支持多个的啊! 2.默认球是设置刚体,编译后正常应该是可以落下的,但是并没有 const rig = this.basketball.getComponent(Laya.Rigidbody3D); if (rig) { //默认不生效呢??? // ...
来源: Laya_社区 发布时间: 20230220
...oup_Example { public function RadioGroup_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/radio.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete...
来源: Laya3.0_api 发布时间: 20231115
...报错 Laya2.0项目文件过多导致编译内存不够,请问在哪里设置增加编译内存(急) ios升级到15.4后游戏会一直闪屏,可重现demo见附件 layabox的3d引擎,在导入u3d场景之后,坐标系还是跟u3d的一致吗? 高频使用遮罩 导致手机扫码测试闪屏...
来源: Laya_社区 发布时间: 20241017
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoHide autoHide: boolean = false Defined in laya/ui/ScrollBar.ts:50 一个布尔值,指定是否自动隐藏滚动条(无需滚...
来源: Laya3.0_api 发布时间: 20231115
...boBox_Example { public function ComboBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete()...
来源: Laya3.0_api 发布时间: 20231115
...s "laya/ui/ScaleBox" ScaleBox Class ScaleBox 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTest...
来源: Laya3.0_api 发布时间: 20231115
... class Tab_Example { public function Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete()...
来源: Laya3.0_api 发布时间: 20231115
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoDestroyAtClosed autoDestroyAtClosed: boolean = false Inherited from Scene.autoDestroyAtClosed Defined in laya/display/Scene.ts:...
来源: Laya3.0_api 发布时间: 20231115