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

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

1331. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 41%]

...orld_BaseCollider 粘贴以下代码执行: //问题在 addSphere 方法 class PhysicsWorldBaseCollider{     constructor(){         //初始化引擎         Laya3D.init(0, 0);         //设置画布模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.sta...

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

1332. laya.d3.core.ui3d.UI3D_API3.0 [ 41%]

...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

1333. laya.d3.core.Sprite3D_API3.0 [ 41%]

...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

1334. HTML文本 · LayaAir3.0文档 · LAYABOX [ 41%]

...;<p>p</p><img src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签...

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

1335. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...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

1336. laya.d3.math.Vector3 [ 41%]

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

1337. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 41%]

...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

1338. laya.ui.Tree [ 41%]

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

1339. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...值 将结果赋值给图层遮罩属性 示例代码如下: 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

1340. laya.resource.RenderTexture2D_API3.0 [ 40%]

...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