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

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

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

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

703. laya.resource.BaseTexture_API3.0 [ 42%]

... url uuid DEBUG Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture destroyed dimension filterMode format gammaCorrection gammaSpace gpuMemory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _ad...

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

704. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 42%]

...ction _getVertexBuffer(index:int = 0):VertexBuffer3D Parameters index:int (default = 0)ReturnsVertexBuffer3D_prepareRender()method override public function _prepareRender(state:RenderContext3D):Boolean Parameters state:RenderContext3DReturnsBooleanaddNewParticlesToVertexBuffer()method  public func...

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

705. 一个简单的跑酷曲面shader分享 [ 42%]

...aya上,奈何不知道怎么写,就写这个shader练练手~   export default class CurveBlinnPhong extends Laya.BlinnPhongMaterial { public readonly MAIN_TEX: number = Laya.Shader3D.propertyNameToID("u_MainTex"); public readonly X_OFFSET: number = Laya.Shader3D.propertyNameToID("u_XOffset"); p...

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

706. laya加载unity插件导出的场景 physics3D is not a function [ 42%]

...能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var sce...

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

707. [LayaAirIDE3]应该如何定义@property才能像GTextField一样加载字体? [ 42%]

...大为 赞同来自: @property({type: String, displayName: "字体名称", default: "宋体",isAsset: true, inspector: "Font"}) 您好,这个装饰器可以实现您需要的效果 2025-09-16 0 1 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 您可以设置一下启动脚本,在启动...

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

708. laya.ui.List [ 41%]

...可以选择,若值为true则可以选择,否则不可以选择。 The default value is false.selectHandlerproperty public var selectHandler:Handler改变 List 的选择项时执行的处理器,(默认返回参数: 项索引(index:int))。selectionproperty selection:Box 获取或设置...

来源: laya_api 发布时间: 20170929

709. Resources already exist,is repeated loading 加载特效报重复加载 [ 41%]

...urces already exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{     private scene:Laya.Scene3D;     private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private rotate:Lay...

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

710. laya.d3.graphics.vertex.VertexMesh_API3.0 [ 41%]

...式为:"POSITION,NORMAL,COLOR,UV,UV1,BLENDWEIGHT,BLENDINDICES,TANGENT"。 Default value compatible: boolean = true Returns VertexDeclaration 顶点声明。 Globals "laya/d3/graphics/Vertex/VertexMesh" VertexMesh MESH_BLENDINDICES0 MESH_BLENDWEIGHT0 MESH_COLOR0 MESH_CUSTOME0 MESH_CUSTOME1 MESH_CUSTO...

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