大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
... setup(); } private function setup():void { initMatter(); initWorld(); } private function initMatter():void { // 初始化物理...
来源: Laya_社区 发布时间: 20170822
... clone():*[override] 克隆。 SphereColliderShape cloneTo(destObject:*):void 克隆。 ColliderShape updateLocalTransformations():void 更新本地偏移,如果修改LocalOffset或LocalRotation需要调用。 ColliderShapeProperty Detailradiuspropertyradius:Number [read-only] 获取半径。 ...
来源: Laya2.0_api 发布时间: 20190513
..." Defined in laya/display/cmd/TranslateCmd.ts:7 Methods recover recover(): void Defined in laya/display/cmd/TranslateCmd.ts:29 回收到对象池 Returns void Globals "laya/display/cmd/TranslateCmd" TranslateCmd tx ty ID recover Legend Object literal Variable Function Type alias Class Class with typ...
来源: Laya3.0_api 发布时间: 20231115
...aram sign 对象类型标识字符。 */ static clearBySign(sign: string): void { if (Pool._poolDic[sign]) Pool._poolDic[sign].length = 0; } 比如在游戏中,当一场战斗结束时,当没有需要子弹的对象池的需求了,我们可以通过代码来清理对象池: Laya.Pool.clearBy...
来源: Laya3.0_文档 发布时间: 20251010
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.tab.pos(200, 200); this.tab.labelBold = true; this.tab.labelSize = 20; this.tab.labelStrokeColor = "#000000"; this.tab.labels = "Tab 1,Tab 2,Tab 3"; this.tab.labelColors = "#32556b,#8FB299,#ff0000"; this.tab.selec...
来源: Laya3.0_文档 发布时间: 20251010
...sUpdateList 实例。 Returns PhysicsUpdateList Methods destroy destroy(): void Inherited from SingletonList.destroy Defined in laya/utils/SingletonList.ts:76 Returns void indexof indexof(element: PhysicsComponent): number Inherited from SingletonList.indexof Defined in laya/utils/SingletonList.ts:4...
来源: Laya3.0_api 发布时间: 20231115
...eList 实例。 Returns CannonPhysicsUpdateList Methods destroy destroy(): void Inherited from SingletonList.destroy Defined in laya/utils/SingletonList.ts:69 Returns void indexof indexof(element: CannonPhysicsComponent): number Inherited from SingletonList.indexof Defined in laya/utils/SingletonLis...
来源: Laya3.0_api 发布时间: 20231102
...s.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 Laya.stage.addChild(this.img); } } new MaskDemo(); ``` 运行效...
来源: Laya2.0_文档 发布时间: 20210715
...hodDefined By HTMLDivElement()HTMLDivElement appendHTML(text:String):void 追加内容,解析并对显示对象排版 HTMLDivElementProperty DetailcontextHeightpropertypublic var contextHeight:Number 实际内容的高 contextWidthproperty public var contextWidth:Number 实际内容的宽 h...
来源: laya_api 发布时间: 20170929
...er.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscroll.png'; panel.hScrollBarSkin='comp/hscroll.png'; Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170719