大约有 1,764 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...nly exported Menu Globals "laya/d3/core/trail/TrailGeometry" TrailGeometry Class TrailGeometry TrailGeometry 类用于创建拖尾渲染单元。 Hierarchy GeometryElement TrailGeometry Index Constructors constructor Properties _geometryElementOBj ALIGNMENT_TRANSFORM_Z ALIGNMENT_VIEW Accessors buffe...
来源: Laya3.0_api 发布时间: 20231115
...了更新物理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script { strWorldRoot:Laya.Sprite; constructor() { super(); } cameraPlayerOffset:Laya.Point=new Laya.Point(18,0); cameraOffset:Laya.Point=new Laya.Point(180,570); onE...
来源: Laya_社区 发布时间: 20231123
...=MultiLight))的代码来做讲解: > 移动灯光脚本 ```typescript class LightMoveScript extends Script3D { //需要操作的光源数组 public var lights: Array = []; //光源对应的位置偏移数组 public var offsets: Array = []; //光源对应的移动半径数组 public var moveRang...
来源: Laya2.0_文档 发布时间: 20210714
...exported Menu Globals "laya/d3/component/HLOD/HLODBatchMesh" HLODBatchMesh Class HLODBatchMesh Hierarchy GeometryElement HLODBatchMesh Index Constructors constructor Properties _geometryElementOBj Accessors batchMesh batchSubMeshInfo bufferState destroyed drawType indexFormat instanceCount mode Meth...
来源: Laya3.0_api 发布时间: 20231115
...载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //L...
来源: Laya_社区 发布时间: 20190510
...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.physics.CharacterController))。 #### (1) 使用代码创建角色碰撞器 **插件目前暂不支持角色碰撞器导出,使用时需要使用代码创建。** 下面这段代码来自官方示例([demo...
来源: Laya2.0_文档 发布时间: 20210715
...d3/RenderObjs/RenderObj/InstanceRenderElementOBJ" InstanceRenderElementOBJ Class InstanceRenderElementOBJ Hierarchy RenderElementOBJ InstanceRenderElementOBJ Implements IRenderElement Index Constructors constructor Properties _geometry _invertFront _isRender _materialShaderData _owner _renderShaderD...
来源: Laya3.0_api 发布时间: 20231115
...ysicsCannon/shape/CannonCompoundColliderShape" CannonCompoundColliderShape Class CannonCompoundColliderShape CompoundColliderShape 类用于创建盒子形状碰撞器。 Hierarchy CannonColliderShape CannonCompoundColliderShape Implements IClone Index Constructors constructor Properties needsCustom...
来源: Laya3.0_api 发布时间: 20231102
...ice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender = xgame.marketitem; list.repeatX = 3; list.repeatY = 1; list.spaceX = 10; list.hScrollBarSkin = ""; /...
来源: Laya_社区 发布时间: 20170422
....Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; t...
来源: Laya_社区 发布时间: 20171211