大约有 1,557 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0061 秒)
Laya_社区(551) Laya3.0_api(360) Laya2.0_api(247) laya_api(208) Laya2.0_文档(120) Laya3.0_文档(69) Laya2.0_示例(2)
...orld_BaseCollider 粘贴以下代码执行: //问题在 addSphere 方法 class PhysicsWorldBaseCollider{ constructor(){ //初始化引擎 Laya3D.init(0, 0); //设置画布模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.sta...
来源: Laya_社区 发布时间: 20191009
...herited Externals Only exported Menu Globals "laya/d3/core/UI3D/UI3D" UI3D Class UI3D BaseCamera 类用于创建摄像机的父类。 Hierarchy BaseRender UI3D Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge ...
来源: Laya3.0_api 发布时间: 20231115
...ited Externals Only exported Menu Globals "laya/d3/core/Sprite3D" Sprite3D Class Sprite3D Sprite3D 类用于实现3D精灵。 Hierarchy Node Sprite3D RenderableSprite3D BaseCamera LightSprite Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active acti...
来源: Laya3.0_api 发布时间: 20231115
...;<p>p</p><img src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签...
来源: Laya3.0_文档 发布时间: 20230303
...Main.ts中添加代码: import { testLib } from "./TestLib"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { alert(testLib.nativeAdd(10, 11)); } } 因为LayaNative的扩展功能只支持Windows平台,所以只能通过Windows预览或发布...
来源: Laya3.0_文档 发布时间: 20251010
API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By ...
来源: laya_api 发布时间: 20170929
...tomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._getTexture(CustomMaterial.DIFFUSETEXTURE); } CustomMateria...
来源: Laya_社区 发布时间: 20170524
API DocumentationAll Packages | All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次...
来源: Laya2.0_api 发布时间: 20190513
...值 将结果赋值给图层遮罩属性 示例代码如下: const { regClass, property } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @propert...
来源: Laya3.0_文档 发布时间: 20251010
...Only exported Menu Globals "laya/resource/RenderTexture2D" RenderTexture2D Class RenderTexture2D RenderTexture 类用于创建渲染目标。 Hierarchy BaseTexture RenderTexture2D Implements IRenderTarget Index Constructors constructor Properties _id _isCameraTarget _renderTarget depthStencilTexture...
来源: Laya3.0_api 发布时间: 20231115