• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)

1271. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 73%]

...      setup();         }         private function setup():void         {             initMatter();             initWorld();         }                  private function initMatter():void         {             // 初始化物理...

来源: Laya_社区 发布时间: 20170822

1272. laya.d3.physics.shape.SphereColliderShape [ 73%]

... clone():*[override] 克隆。 SphereColliderShape cloneTo(destObject:*):void 克隆。 ColliderShape updateLocalTransformations():void 更新本地偏移,如果修改LocalOffset或LocalRotation需要调用。 ColliderShapeProperty Detailradiuspropertyradius:Number  [read-only] 获取半径。 ...

来源: Laya2.0_api 发布时间: 20190513

1273. laya.display.cmd.TranslateCmd_API3.0 [ 73%]

..." 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

1274. 对象池 · LayaAir3.4 · 引擎文档 · LAYABOX [ 73%]

...aram sign 对象类型标识字符。 */ static clearBySign(sign: string): void { if (Pool._poolDic[sign]) Pool._poolDic[sign].length = 0; } 比如在游戏中,当一场战斗结束时,当没有需要子弹的对象池的需求了,我们可以通过代码来清理对象池: Laya.Pool.clearBy...

来源: Laya3.0_文档 发布时间: 20251010

1275. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 73%]

...有节点和组件均已创建完毕,此方法只执行一次 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

1276. laya.d3.physics.PhysicsUpdateList_API3.0 [ 73%]

...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

1277. laya.d3.physicscannon.CannonPhysicsUpdateList_API3.0 [ 73%]

...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

1278. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 73%]

...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

1279. laya.html.dom.HTMLDivElement [ 73%]

...hodDefined By  HTMLDivElement()HTMLDivElement  appendHTML(text:String):void 追加内容,解析并对显示对象排版 HTMLDivElementProperty DetailcontextHeightpropertypublic var contextHeight:Number 实际内容的高 contextWidthproperty public var contextWidth:Number 实际内容的宽 h...

来源: laya_api 发布时间: 20170929

1280. 如何用代码控制panel的vscroll滚动幅度 [ 73%]

...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