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

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

721. [LayaNative2]Laya2.0 导出的Apk在LibChecker是没有显示16KB的,但在AndroidStudio中是有显示16kb的 [ 52%]

...有显示16KB的,想确认下这种情况正常吗 直接用LayaIDE随便创建一个项目,然后用最新的Native进行构建apk 附件 : --> 2025-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 lv 赞...

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

722. laya.d3.core.light.SpotLightCom_API3.0 [ 52%]

...ore/light/SpotLightCom" SpotLightCom Class SpotLightCom SpotLight 类用于创建聚光。 Hierarchy Light SpotLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBa...

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

723. import自己写的类,new出来后为什么一片漆黑 [ 52%]

...奇怪的问题。我在src文件夹中,新建一个文件夹npc,并且创建一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代...

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

724. laya.d3.component.volume.Volume_API3.0 [ 51%]

...des Component.constructor Defined in laya/d3/component/Volume/Volume.ts:42 创建一个Volume实例 Returns Volume Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited fr...

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

725. laya.d3.physics.PhysicsTriggerComponent_API3.0 [ 51%]

...erComponent Class PhysicsTriggerComponent PhysicsTriggerComponent 类用于创建物理触发器组件。 Hierarchy PhysicsComponent PhysicsTriggerComponent PhysicsCollider Rigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors aw...

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

726. 克隆sprite [ 51%]

...将该sprite类封装成一个单独的基类吧,然后通过new的方式创建! 2017-05-08 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面...

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

727. laya.ui.ComboBox [ 51%]

...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...

来源: Laya2.0_api 发布时间: 20190513

728. 文本基础样式(TypeScript-LayaAir基础篇(TS)-文本) [ 51%]

...小,字体颜色,文本内容等。 我们先做一个最基本的Demo创建一个文本,给这个文本添加文本内容、设置字体颜色(背景默认为黑色,不修改颜色没有效果)。 laya.display.text中的关于文本样式的API参数: ![1](img/1.png) ![2](img/2.png) `...

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

729. parameter 2 is not of type 'WebGLTexture'. [ 51%]

...ringContext': parameter 2 is not of type 'WebGLTexture'. 代码如下:// 创建video对象 let videoElement = new Laya.Video(); videoElement.x = 0; videoElement.y = 0; videoElement.size(1920,1080); videoElement.loop = false; // 是否循环播放 videoElement.load('res/video/mov_bbb.mp4'); // 添...

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

730. Laya.loader.create 加载的中途断网 简直是灾难 [ 51%]

...载这些关联文件,最后使用的时候就用 laya.sprite3D.load去创建该3d对象,或者在下完关联文件的时候,用 laya.sprite3D.load 创建一次3d对象 ,然后其他地方用的时候就可以直接 laya.loader.getRes()获取了   这是我目前的一个解决办法,希...

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