大约有 1,766 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(625) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.ui.CheckBox)。 ## 二、通过LayaAirIDE创建CheckBox组件 ### 2.1 创建CheckBox 创建一个ui的DEMO页,点击选择`资源管理器`里的 CheckBox 组件资源,拖到场景编辑器,即成功添加 Ch...
来源: Laya2.0_文档 发布时间: 20210715
...gPanelUI; import laya.device.motion.AccelerationInfo; public class LayaSample { private var m_bkSound:Sound; private var m_mapLayer:Sprite; private var m_MapImgUrl:String; private var m_Role:Animation; ...
来源: Laya_社区 发布时间: 20170921
....scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。
来源: Laya_社区 发布时间: 20190521
...比较像 只是多了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了 如果谁有更好的方法 一起讨论研究.. 2018...
来源: Laya_社区 发布时间: 20180805
...为创建多光源的代码 代码参考“引擎API使用示例” export class MultiLight extends BaseScript { constructor() { super(); } onAwake(): void { var moveScript: LightMoveScript = this.camera.addComponent(LightMoveScript); var moverLights: Laya.Sprite3D[] = moveScript.lights; var offsets...
来源: Laya3.0_文档 发布时间: 20251010
...的各项属性。示例代码如下所示: 示例代码: const { regClass, property } = Laya; @regClass() /** * 在节点上添加2D拖尾渲染器的示例代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件...
来源: Laya3.0_文档 发布时间: 20251010
...结合1.3节的脚本控制,在脚本中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "...
来源: Laya3.0_文档 发布时间: 20251010
...rited Externals Only exported Menu Globals "laya/components/Script" Script Class Script Script 类用于创建脚本的父类,该类为抽象类,不允许实例。 Hierarchy Component Script Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked...
来源: Laya3.0_api 发布时间: 20231115
...API Usage警告 nm libconch.a | grep UIW U _OBJC_CLASS_$_UIWebView 0000000000002620 s l_OBJC_$_PROTOCOL_INSTANCE_METHODS_OPT_UIWebViewDelegate 0000000000002688 s l_OBJC_$_PROTOCOL_METHOD_TYPES_UIWebViewDelegate 0000000000002608 s l_OBJC_$_PROTOCOL_REFS_UIWebViewDelegate 000...
来源: Laya_社区 发布时间: 20190910
...库通过script标签的方式引入index.html启动文件package { public class FormDemo { public function FormDemo() { // 初始化舞台 Laya.init(400,400); // 图标数据 var data:Object = { labels: [ //最上方矩形的标签提示和颜色设置 "Red", "Blue", "Yellow" ], datasets: [ { data:...
来源: Laya_社区 发布时间: 20170109