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

大约有 310 项符合查询结果, 库内数据总量为 30,967 项。 (搜索耗时: 0.0096 秒)

41. [LayaAir 2.0] 如何用代码Spirte添加2d物理特性 [ 82%]

...= this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.createPanel(); } private createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff);...

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

42. laya.media.SoundNode_API3.0 [ 82%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globa...

来源: Laya3.0_api 发布时间: 20231115

43. laya.d3.resource.models.PrimitiveMesh_API3.0 [ 82%]

...18 Returns void Static createBox createBox(long?: number, height?: number, width?: number): Mesh Defined in laya/d3/resource/models/PrimitiveMesh.ts:69 创建Box网格。 Parameters Default value long: number = 1 半径 Default value height: number = 1 垂直层数 Default value width: number = 1 ...

来源: Laya3.0_api 发布时间: 20231115

44. laya.particle.Particle2D_API3.0 [ 82%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation globalScaleX global...

来源: Laya3.0_api 发布时间: 20231115

45. laya.map.GridSprite_API3.0 [ 82%]

...rough name relativeX relativeY tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...

来源: Laya3.0_api 发布时间: 20231115

46. laya.html.dom.HTMLDivElement_API3.0 [ 82%]

... background-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽度 height:100px; 对象高度 示例用法: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors construc...

来源: Laya3.0_api 发布时间: 20231102

47. laya.ui.Box_API3.0 [ 82%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize...

来源: Laya3.0_api 发布时间: 20231115

48. laya.ui.ScaleBox_API3.0 [ 82%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize...

来源: Laya3.0_api 发布时间: 20231115

49. laya.ui.Image_API3.0 [ 82%]

...置。 bg.sizeGrid = "40,10,5,10";//设置 bg 对象的网格信息。 bg.width = 150;//设置 bg 对象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 I...

来源: Laya3.0_api 发布时间: 20231115

50. laya.map.MapLayer_API3.0 [ 82%]

...ame mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...

来源: Laya3.0_api 发布时间: 20231115