大约有 549 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
Laya_社区(318) Laya3.0_api(158) Laya2.0_文档(35) Laya3.0_文档(16) Laya2.0_示例(7) laya_api(7) Laya_示例(6) Laya2.0_api(2)
... HTMLDivElement; Laya.stage.addChild(t); t.style.valign = "middle"; t.size(60, 120); t.style.wordWrap = true; t.style.leading = 10; t.innerHTML = "akshfkjashfkjhakshjdfhkasjdfhsaf"; 运行效果: 3.8 解决IOS手机上英文字母偏下的问题(在style样式中加垂直向上对齐valign:top...
来源: Laya3.0_文档 发布时间: 20230303
... from Resource.destroyUnusedResources Defined in laya/resource/Resource.ts:60 销毁当前没有被使用的资源,该函数会忽略lock=true的资源。 Returns void Object literals Static tween tween: object Defined in laya/components/AnimationClip2D.ts:33 动画补帧函数 Back_EaseIn Back_Ease...
来源: Laya3.0_api 发布时间: 20231115
...herited from Component.hasHideFlag Defined in laya/components/Component.ts:60 Parameters flag: number Returns boolean onAdded onAdded(): void Inherited from Component.onAdded Defined in laya/components/Component.ts:262 被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也...
来源: Laya3.0_api 发布时间: 20231102
...r(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(role.heroType === 2){ // 每吃一个子弹升级道具,子弹升级+1 this.bulletLevel++; //子弹每升级2级,子弹数量+1...
来源: Laya_社区 发布时间: 20170525
...herited from Component.hasHideFlag Defined in laya/components/Component.ts:60 Parameters flag: number Returns boolean onAdded onAdded(): void Inherited from Component.onAdded Defined in laya/components/Component.ts:262 被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也...
来源: Laya3.0_api 发布时间: 20231102
...nherited from Value2D.ref Defined in laya/webgl/shader/d2/value/Value2D.ts:60 shader shader: Shader Inherited from Value2D.shader Defined in laya/webgl/shader/d2/value/Value2D.ts:48 size size: any[] = [0, 0] Inherited from Value2D.size Defined in laya/webgl/shader/d2/value/Value2D.ts:39 subID subID:...
来源: Laya3.0_api 发布时间: 20231115
...herited from Component.hasHideFlag Defined in laya/components/Component.ts:60 Parameters flag: number Returns boolean onAdded onAdded(): void Inherited from Component.onAdded Defined in laya/components/Component.ts:262 被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也...
来源: Laya3.0_api 发布时间: 20231115
...herited from Component.hasHideFlag Defined in laya/components/Component.ts:60 Parameters flag: number Returns boolean onAdded onAdded(): void Inherited from Component.onAdded Defined in laya/components/Component.ts:262 被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也...
来源: Laya3.0_api 发布时间: 20231115
...开放域界面5帧刷一次,相当于开放域的实际帧数只有12=60/5帧,对动画来说,看起来就不会很流畅了,因此可以稍微缩小时间单位。 (2)刷新开放域界面方法,即定时器的回调方法(重点): function onTimer() { // bitmap为纹理...
来源: Laya_社区 发布时间: 20181114
...herited from Component.hasHideFlag Defined in laya/components/Component.ts:60 Parameters flag: number Returns boolean onAdded onAdded(): void Inherited from Component.onAdded Defined in laya/components/Component.ts:262 被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也...
来源: Laya3.0_api 发布时间: 20231115