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

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

561. laya.d3.core.trail.TrailFilter_API3.0 [ 65%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/trail/TrailFilter" TrailFilter Class TrailFilter TrailFilter 类用于创建拖尾过滤器。 Hierarchy TrailFilter Index Constructors constructor Properties _curtime _lastPosition _ownerR...

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

562. 请问Laya如何使用第三方物理库 [ 65%]

...ic Step() { this.world.step(1 / 60); }   再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean...

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

563. 输入设备-摇一摇 [ 65%]

... = Laya.Browser; import Handler = Laya.Handler; import Event = Laya.Event; export class InputDevice_Shake { private picW:number = 484; private picH:number = 484; private console:Text; private shakeCount:number = 0; constructor() { Laya.init(this.picW, Browser.height * this.picW / Browser.width); Lay...

来源: Laya2.0_示例 发布时间: 20250220

564. 如何拓展材质shader? [ 65%]

...rial   但在做材质属性拷贝的时候会出现不正确的结果   export default class LayaBlinnPhongExt extends Laya.BlinnPhongMaterial {     public CopyAttribute_ASKLaya(baseMat: Laya.BlinnPhongMaterial) {                var layaBlinnPhongExt:LayaBlinnPhongExt=this;    ...

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

565. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...脚本控制HScrollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HScrollBar }) public hscroll: Laya.HScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(...

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

566. UI怎么设置居中显示,显示到游戏窗口中 [ 65%]

...mespace uiview { import Event = Laya.Event; import Browser = Laya.Browser; export class ViewLogin extends ui.loginViewUI { constructor() { super(); this.smo this.visible = false; 我的问题是UI界面如何对齐,不是舞台。。 2018-02-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

567. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...脚本控制VScrollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VScrollBar }) public vscroll: Laya.VScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(...

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

568. Sprite-遮罩-放大镜 [ 65%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...

来源: Laya2.0_示例 发布时间: 20250220

569. laya.d3.renderobjs.nativeobj.NativeBounds_API3.0 [ 65%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBounds" NativeBounds Class NativeBounds Hierarchy NativeBounds Implements IClone Index Constructors constructor Properties MemoryBlock_size Accessors max min Methods _...

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

570. laya.d3.core.ui3d.UI3DGeometry_API3.0 [ 65%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/UI3D/UI3DGeometry" UI3DGeometry Class UI3DGeometry Hierarchy GeometryElement UI3DGeometry Index Properties _geometryElementOBj Accessors bufferState destroyed drawType indexFormat instanceC...

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