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

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

251. 3D变换 · LayaAir3.0文档 · LAYABOX [ 37%]

...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //设置定时器执行,定时重复执行(基于帧率) Laya.timer.frameLoop(1, this, this.animate); } private animate(): void { // 旋转立方体(四元数) this.cube.transform.rotate(this.rot, false, false); } } 旋转...

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

252. 【简单跑酷--JS版】---Lv.6 终篇 [ 37%]

...yer.x, this.player.y)){ //人物如果踩到地板了 就把人物的坐标设置到地板上面 this.player.y = floor.y; //如果到地板上面的 就得重置跳的方法 this.player.jumpReset(); } } } //点击 出发人物 跳跃 _proto.onMouseDown = function(){ this.player.jump(); } _proto.onMo...

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

253. 微信小游戏分包实战(ActionScript-小游戏适配文档-微信小游戏) [ 36%]

... 在F9的UI模式选项,以及项目管理器,右击每一个UI页面设置默认属性时的导出型选项,都可以看到内嵌模式、加载模式、分离模式,三个选项。 ![图1](img/1.png) **默认是内嵌模式**,这种模式下,导出UI的页面时,会将配置信息...

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

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

...下来就是把地板显示到舞台上面 打开Floor.js 我们来给floor设置皮肤  (function(){ /** * 地板 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //背景 this.bg = null; Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor...

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

255. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 28%]

...sprite我在原地画了个圆为什么只有右下区域能点击,明明设置了mouseEnabled=true,设置了size了呢?虽然官方的文档说明里有介绍,真心很多不细看的人压根不知道,也包括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle...

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

256. laya.d3.core.scene.Scene3D_API3.0 [ 26%]

...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 _sundir _sundir: Vector3 = new Vector3() Defined in laya/d3/core/scene/Scene3D.ts:381 interanl Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoSize autoSize: boolean = false I...

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