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

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

401. 微信小游戏,实现监听前后台切换 [ 71%]

...不知道Laya本身是否有解决方案啊  wxhelper.jsclass WXHELPER { constructor () { this._isWxContext = !!window.wx } onShow (callback) { if (!this._isWxContext) return window.wx.onShow(callback) } onHide (callback) { if (!this._isWxContext) return window.wx.onHide(callback) } offShow (callba...

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

402. laya.resource.Texture_API3.0 [ 71%]

...xture Texture 是一个纹理处理类。 Hierarchy Resource Texture Index Constructors constructor Properties _id _sizeGrid _stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourceWidth url uuid DEBUG Accessors bitmap cpuMemory destroyed gpuMemory height id obsolute referenceCou...

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

403. ts继承后,代码压缩的问题 [ 71%]

...b[p] } ; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __) } }(); 然后运行代码会报Uncaught TypeError: LayerManager is not a constructor的错误 我看到Laya有一个Laya.cla...

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

404. laya.d3.core.SkinnedMeshRenderer_API3.0 [ 71%]

...SkinnedMeshRenderer SimpleSkinnedMeshRenderer Implements IBoundsCell Index Constructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightm...

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

405. 升级引擎到1.7.19.1beta List报错问题 [ 71%]

...的,有如下场景: class PageList extends laya.ui.List {        constructor()      {           super();       }        protected initialize():void        {              super.initialize();              this.itemRender = PageRender;//错误,因为_cells...

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

406. Vector 向量如何创建? 在2d微信小游戏中 [ 71%]

...向量  var v = new Vector2(); 会报错   TypeError: Vector2 is not a constructor 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 c__yh 赞同来自: 在3d工程里面是可以的,2d不行。我们...

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

407. laya.d3.component.volume.reflectionprobe.ReflectionProbe_API3.0 [ 71%]

...于实现反射探针组件 miner Hierarchy Volume ReflectionProbe Index Constructors constructor Properties _extra _isScene _singleton _updateMark owner runInEditor scriptPath TEMPVECTOR3 defaultTextureHDRDecodeValues Accessors ambientColor ambientIntensity ambientMode ambientSH ambientSphericalHar...

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

408. laya.d3.core.particleshuriken.ShurikenParticleRenderer_API3.0 [ 71%]

...Hierarchy BaseRender ShurikenParticleRenderer Implements IBoundsCell Index Constructors constructor Properties _extra _particleSystem _receiveShadow _singleton owner runInEditor scriptPath sortingFudge stretchedBillboardCameraSpeedScale stretchedBillboardLengthScale stretchedBillboardSpeedScale Acce...

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

409. laya.d3.core.SimpleSkinnedMeshRenderer_API3.0 [ 71%]

...SkinnedMeshRenderer SimpleSkinnedMeshRenderer Implements IBoundsCell Index Constructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightm...

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

410. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 70%]

...aya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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