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

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

691. 动画实例在调用含有名字参数的时候获取不到边界 [ 43%]

...1 15:01 浏览: 2083 关注: 2 人 198*****136 • 2020-09-11 16:34 export default class Scene_Battle extends Laya.Script{ playerUnitReady:number; enemyUnitReady:number; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALI...

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

692. 请问laya有没有类似翻页容器(pageView)的组件? [ 43%]

...fo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Han...

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

693. laya.ani.AnimationTemplet_API3.0 [ 43%]

...Resource._addReference Defined in laya/resource/Resource.ts:203 Parameters Default value count: number = 1 Returns void _clearReference _clearReference(): void Inherited from Resource._clearReference Defined in laya/resource/Resource.ts:218 清除引用 Returns void _removeReference _removeReference...

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

694. 描边Shader,使用了两个Pass [ 43%]

...示例工程请参阅附件 截图如下:   核心代码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_T...

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

695. 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? [ 43%]

...个时候它并不会被打入bundle.js, 得把这段代码改成export default class asd { }才能在bundle.js里找到它??   有没有什么方法或者构建选项可以不用写那么多export和import吗? 因为现在项目用的1.0版本基本都快完成了,之前都是不写import...

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

696. [LayaAir3]Laya3 满帧情况文字或者物体移动卡顿问题,请求解决 [ 43%]

...laya3 很多年了,真希望越来越好。望重视 参考脚本 export default class Times 附件 : --> LayaFps.zip 2025-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 谷主 赞同来自: Charley-Layabo...

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

697. laya.d3.physicscannon.shape.CannonCompoundColliderShape_API3.0 [ 42%]

...pe/CannonCompoundColliderShape.ts:58 Parameters shape: CannonColliderShape Default value localOffset: Vector3 = null Returns void bindRigidBody bindRigidBody(rigidbody: CannonPhysicsComponent): void Defined in laya/d3/physicsCannon/shape/CannonCompoundColliderShape.ts:92 Parameters rigidbody: Cannon...

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

698. laya.particle.ParticleTemplate2D_API3.0 [ 42%]

...Resource._addReference Defined in laya/resource/Resource.ts:203 Parameters Default value count: number = 1 Returns void _clearReference _clearReference(): void Inherited from Resource._clearReference Defined in laya/resource/Resource.ts:218 清除引用 Returns void _removeReference _removeReference...

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

699. Native(android)下创建二维码并显示在页面上 [ 42%]

...s = baos.toByteArray(); result = Base64.encodeToString(bitmapBytes, Base64.DEFAULT); } } catch (IOException e) { e.printStackTrace(); } finally { try { if (baos != null) { baos.flush(); baos.close(); } } catch (IOException e) { e.printStackTrace(); } } return result; } 2020-07-29 添加评论 免费...

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

700. Ts简单对象池 [ 42%]

...象池对应的编号对应好,否则使用时会出问题 */   export default class PoolManager { static _instance:any; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) ...

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