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

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

201. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 58%]

...DIE = "floor_out_die"; //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; /** * type int 1->地板默认宽度 other->随机宽度 */ _proto.init = function(type){ this.maxRight = 0; //如果不开启autoSize 父容器...

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

202. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 58%]

...可直接查看API: [https://layaair.ldc.layabox.com/api/?category=Core&class=laya.utils.Tween](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=Utils&class=laya.utils.Tween) `Ease`类的API中对缓动函数进行了基础的介绍,点击链接可...

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

203. 灯光-聚光 [ 57%]

...direction, _quaternion, _direction); spotLight.direction = _direction; }); class SpotLightDemo { private scene: Laya.Scene; private _quaternion: Laya.Quaternion; private _position: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenM...

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

204. 分享:TiledMap设置viewport后黑屏问题! [ 57%]

...p.TiledMap; import laya.maths.Rectangle; import laya.utils.Handler; public class LayaAirDemo { private var tiledMap:TiledMap; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER...

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

205. laya.d3.renderobjs.nativeobj.NativeBounds_API3.0 [ 57%]

...rted Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBounds" NativeBounds Class NativeBounds Hierarchy NativeBounds Implements IClone Index Constructors constructor Properties MemoryBlock_size Accessors max min Methods _getBoundBox calculateBoundsintersection clone cloneTo getCenter getExtent getMa...

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

206. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 57%]

...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.component.Script3D)),在3D世界的开发中脚本类会在很多地方被使用,该组件将会在后面的脚本篇中详细的讲解,在本篇只是简单的讲解如何给Sprite3D添加一个脚本。 ...

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

207. laya.d3.math.Matrix4x4 [ 57%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Matrix4x4Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix4x4InheritanceMatrix4x4 ObjectImplements laya.d3.core.IClone Matrix4x4 类用于创建4x4矩阵。 Public Properties PropertyDefined ...

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

208. 高级应用-渲染纹理 [ 57%]

...= 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { private scene: Laya.Scene; private renderTargetCamera: Laya.Camera; private layaPlane: Laya.Sprite3D; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...

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

209. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...用于描述加载进度。需要添加如下的示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ProgressBar }) public progressBar: Laya.ProgressBar; @property({ type: Laya.Text }) public loadText: Laya.Text; //组...

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

210. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

组件装饰器标识的详细说明1、识别组件脚本 @regClass()1.1 代码中如何使用 @regClass()1.2 IDE中如何找到被识别的组件脚本2、识别组件 @property()2.1 组件属性的常规使用2.2 访问器的装饰器使用2.3 是否序列化保存 serializable2.4 是否为私...

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