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

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

81. 为什么会出现报错 ani not found:ufo1_down [ 82%]

...= (function(){ (function Game(){ // 子弹发射偏移位置表 this.bulletPos = [[0],[-15,15],[-30,0,30],[-45,-15,15,45]]; // 关卡等级 this.level = 0; // 升级等级所需要的成绩数量 this.levelUpScore = 0; // 积分成绩 this.score = 0; // 子弹级别 this.bulletLevel = 0; // 敌机...

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

82. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 81%]

...已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontCli...

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

83. laya.device.geolocation.GeolocationInfo [ 81%]

...: Number[read-only] GeolocationInfoPublic Methods  MethodDefined By  setPosition(pos:*):voidGeolocationInfoProperty Detailaccuracypropertyaccuracy:Number  [read-only] Implementation     public function get accuracy():Numberaltitudeproperty altitude:Number  [read-only] Implementation   ...

来源: laya_api 发布时间: 20170929

84. laya.device.geolocation.GeolocationInfo [ 81%]

...: Number[read-only] GeolocationInfoPublic Methods  MethodDefined By  setPosition(pos:*):voidGeolocationInfoProperty Detailaccuracypropertyaccuracy:Number  [read-only] Implementation     public function get accuracy():Numberaltitudeproperty altitude:Number  [read-only] Implementation   ...

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

85. DOM元素-表单输入 [ 81%]

...FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightDelta = this.rowSpacing + this.rowHeight; // ...

来源: Laya_示例 发布时间: 20241117

86. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 81%]

...his.sEnemyRes) pNewScene.addChild(pBull); pNewScene.addChild(pEnemy); let tPosBull = Util3d.getSprite3D(pNewScene, "bullBeginPos") pBull.transform.position = tPosBull.transform.position; let pBullObj = Util3d.getSprite3D(pBull, "bull"); let pBullRigidBody = <Laya.Rigidbody3D>pBullObj.getCompon...

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

87. 2D物理-仿生机器人 [ 81%]

...lass Physics_Physics_Strandbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw....

来源: Laya2.0_示例 发布时间: 20241117

88. DOM元素-表单输入 [ 81%]

... "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightDelta = this.rowSpacing + this.rowHeight; // ...

来源: Laya2.0_示例 发布时间: 20241117

89. 游戏加载进度失效 [ 80%]

... this.bg = []; this.bg[0] = new BackGround("res/bg1.png", 0.1); this.bg[0].pos(0, 0); Laya.stage.addChild(this.bg[0]); this.bg[1] = new BackGround("res/bg2.png", 1); this.bg[1].pos(0, 0); Laya.stage.addChild(this.bg[1]); this.bg[2] = new BackGround("run/bridge.png", runSpeed); this.bg[2].pos(0, 348)...

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

90. UI-Clip [ 79%]

...); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; co...

来源: Laya_示例 发布时间: 20241117