大约有 2,453 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0052 秒)
...条。 List 组件的脚本接口请参考 [List API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.List)。 ### 1.1 创建 List 组件 #### 1.编辑列表项。 列表项可以是 Box 对象或 View(页面) 或其它自定...
来源: Laya2.0_文档 发布时间: 20210715
...理资源。不使用自动释放 陆仁毅 • 2019-09-06 14:18 https://ldc2.layabox.com/doc/?nav=zh-ts-4-23-1 关于资源上锁 1565401917用户 • 2019-09-06 14:21 好的,明白了,那我自己在lock去对资源上锁就行了,另外,2.2以后的版本,也是引用的js?如果遇...
来源: Laya_社区 发布时间: 20190906
...效只能用wav格式)。 详细教程及声音格式请参考:http://ldc2.layabox.com/doc/?nav=ch-as-1-7-0 Public Properties PropertyDefined By autoReleaseSound : Boolean = true[static] 音效播放后自动删除。 SoundManager autoStopMusic : Boolean[static] 失去焦点后是否自...
来源: Laya2.0_api 发布时间: 20190513
...效只能用wav格式)。 详细教程及声音格式请参考:http://ldc.layabox.com/doc/?nav=ch-as-1-7-0 Public Properties PropertyDefined By autoReleaseSound : Boolean = true[static] 音效播放后自动删除。 SoundManager autoStopMusic : Boolean[static] 失去焦点后是否自动...
来源: laya_api 发布时间: 20170929
...的生命周期等等。 大家可以查看具体的API https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=Component&class=laya.components.Script ### 三、Runtime与脚本的使用区别 LayaAir的组件化开发,核心就是Runtime类与Script(脚本...
来源: Laya2.0_文档 发布时间: 20210715
... } })); } })(); 上面的代码 贴进 https://layaair.ldc.layabox.com/demo/?2d&Sprite&DisplayImage 打开F12可以看到打印信息 或者要像下面这样才能获得到一定的像素信息 这里和上面的区别是,取消了webgl(function() { var Sprite ...
来源: Laya_社区 发布时间: 20171201
...接用就可以了,建议你可以参考下打飞机的示例,http://ldc.layabox.com/index.p ... 3D401 你的需求跟打飞机的实现是很类似的! JianHao • 2017-04-18 11:36 嗯。我知道,我这么做的原因是想一个图里面放了两个效果 //加载图集 Laya.loader.load(&...
来源: Laya_社区 发布时间: 20170330
...效只能用wav格式)。 详细教程及声音格式请参考:http://ldc2.layabox.com/doc/?nav=ch-as-1-7-0 Hierarchy SoundManager Index Properties autoReleaseSound musicVolume playbackRate soundVolume Accessors autoStopMusic musicMuted muted soundMuted useAudioMusic Methods addChannel destroySo...
来源: Laya3.0_api 发布时间: 20231115
...的。 查阅文档后发现,可以通过代码来自行添加。https://ldc2.layabox.com/doc/?nav=zh-ts-4-5-10 编码测试后发现功能是OK的,于是我想了一个办法,为Camera建了一个子对象,通过子对象的名字来标记这个Camera的cullingMask(一开始是想用名...
来源: Laya_社区 发布时间: 20200110
...件。 > 以下代码节选自官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "...
来源: Laya2.0_文档 发布时间: 20210715