大约有 1,651 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0060 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(67) Laya_示例(58) Laya2.0_示例(54)
...n.on(Event.CLICK, this, this.onPlayMusic); } private createButton(label: string): Sprite { var w: number = 110; var h: number = 40; var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FF...
来源: Laya_社区 发布时间: 20190421
...r socket:Socket=null; private var list:Array=; public function Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); sock...
来源: Laya_社区 发布时间: 20170724
... Boolean[read-only] 获取是否为单实例组件。 Component label : String = RigidBody[只读]自定义标签RigidBody linearDamping : Number线性速度阻尼系数,范围可以在0到无穷大之间,0表示没有阻尼,无穷大表示满阻尼,通常阻尼的值应该在0到0.1...
来源: Laya2.0_api 发布时间: 20190513
...ition.ts:77 禁用 Parameters value: boolean Returns void name get name(): string set name(value: string): void Defined in laya/d3/component/Animator/AnimatorTransition.ts:62 设置过渡名字 Returns string Defined in laya/d3/component/Animator/AnimatorTransition.ts:66 设置过渡名字 Parameter...
来源: Laya3.0_api 发布时间: 20231115
...rAni: Laya.Animation; /** 资源前缀 */ private readonly ANIMATION_PATH: string = "resources/builtIngame3role/roleMonster/mc/"; /** 已加载的 .mc 资源路径数组 */ private loadedClips: string[] = []; onEnable(): void { this._animator = this.owner.getComponent<Laya.Animator2D>...
来源: Laya_社区 发布时间: 20251211
...用js方法的,但是不知道方法参数怎么写。比如 callMethod(string,string,string) 这个方法,三个参数代表什么? 2019-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 happyfire 赞同...
来源: Laya_社区 发布时间: 20190515
...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...
来源: laya_api 发布时间: 20170422
...pting/UnityEngineObject.bindings.cs:189) n.a (UnityEngine.Mesh A_0, System.String A_1, System.Boolean A_2) (at <8191b0b4723d4658b95c167f60d265c8>:0) n.c () (at <8191b0b4723d4658b95c167f60d265c8>:0) n.b (System.String A_0) (at <8191b0b4723d4658b95c167f60d265c8>:0) LayaAir3D.exportRe...
来源: Laya_社区 发布时间: 20201218
...lass() export class UI_FontClip extends Laya.Script { private TestClipNum: string = "atlas/comp/fontClip_num.png"; private _ClipNum: string = "atlas/comp/fontClip_num.png"; private _ClipNum1: string = "atlas/comp/fontClip_num.png"; private TestFontClip: string = "atlas/comp/fontClip.png"; private _F...
来源: Laya3.0_文档 发布时间: 20251010
...1,事件类型请参考API文档。 (图2-1) 例如 Laya.Event.CLICK:string = "click"。CLICK 静态属性用于定义事件对象的type类型属性值为单击事件。这个事件是由鼠标点击触发后系统派发的事件,开发者也可以调用event()方法派发这些事件,如...
来源: Laya3.0_文档 发布时间: 20251010