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

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

71. 【简单跑酷--JS版】---Lv.3 添加地板 [ 66%]

...lay.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //始化 _proto.init = function(){ console.log('RunGame Init'); //添加背景 var bg = new Background(); this.addChild(bg); //添加地板集合 var mapFloor = new MapFloor(); this.addChild(mapFloor); } })(); 前期工作...

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

72. rigidBody.applyForce 物体不会移动 [ 66%]

...ya.HitResult; private text: Laya.Text = new Laya.Text(); constructor() { //始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //加载场景人物腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Lay...

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

73. laya.display.Animation [ 65%]

...ded:Handler = null, cacheName:String):Animation 根据指定的动画模版始化当前动画序列帧。选择动画模版的过程如下:1.Animation loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图...

来源: laya_api 发布时间: 20170929

74. laya.display.Animation [ 65%]

...ded:Handler = null, cacheName:String):Animation 根据指定的动画模版始化当前动画序列帧。选择动画模版的过程如下:1.Animation loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0...

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

75. laya.ui.FontClip [ 65%]

...onent  createChildren():void[override] FontClip initialize():void 控件始化。 UIComponent  measureHeight():Number[override] FontClip  measureWidth():Number[override] FontClip preinitialize():void 预始化。 UIComponentEvents Hide Inherited Events Show Inherited Events Event Summ...

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

76. laya.ani.bone.Skeleton [ 63%]

...在此对象内。 Sprite  init(templet:Templet, aniMode:int = 0):void 始化动画 Skeleton isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher  load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Ske...

来源: laya_api 发布时间: 20170929

77. laya.ui.VScrollBar [ 63%]

...并添加控件子节点。 ScrollBar initialize():void[override] 控件始化。 ScrollBar onCompResize():void 父容器的 Event.RESIZE 事件侦听处理函数。 Component preinitialize():void 预始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。 C...

来源: laya_api 发布时间: 20170929

78. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 63%]

... ui } from "./ui/layaMaxUI"; class Main { constructor() { //根据IDE设置始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && La...

来源: Laya2.0_文档 发布时间: 20210715

79. laya.ani.bone.Skeleton [ 63%]

...在此对象内。 Sprite  init(templet:Templet, aniMode:int = 0):void 始化动画 Skeleton isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher  load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Ske...

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

80. laya.ui.VScrollBar [ 62%]

...并添加控件子节点。 ScrollBar initialize():void[override] 控件始化。 ScrollBar measureHeight():Number[override] 显示对象的实际显示区域高度(以像素为单位)。 ScrollBar measureWidth():Number[override] 显示对象的实际显示区域宽度(以像素为单位...

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