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

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

3491. laya.physics.joint.JointBase_API3.0 [ 38%]

... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/compon...

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

3492. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 38%]

...刚体设置为运动刚体类型后,即将`isKinematic`的值设置为`true`。 那么运动刚体可以触发第三方的物理反馈,自己却不受物理影响。例如,运动刚体与动力学刚体发生撞击,动力学刚体会受力反弹,但运动刚体却不会受力的影响,...

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

3493. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 38%]

...t;compile_temp.js echo let fork1 = childprocess.fork(gulpDir, cmd,{silent: true})>>compile_temp.js echo fork1.stdout.on("data", (data) =^> {>>compile_temp.js echo let str = String(data)>>compile_temp.js echo console.log(str)>>compile_temp.js echo if(str.match(/^\s*Error\:/...

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

3494. 请问object层中添加的sprite怎么添加点击事件 [ 38%]

...er.pivotX=25; flower.pivotY=80; flower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : ...

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

3495. laya.d3.core.MeshFilter_API3.0 [ 38%]

... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/compon...

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

3496. laya.d3.component.LODGroup_API3.0 [ 38%]

... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/compon...

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

3497. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 38%]

...","width":150,"height":66,"sizeGrid":"4,4,4,4","labelSize":30,"labelBold":true,"var":"btn2"},"type":"Button"},{"props":{"x":220,"y":188,"skin":"comp/checkbox.png","label":"checkBox1","var":"check"},"type":"CheckBox"},{"props":{"x":220,"y":61,"skin":"comp/radiogroup.png","labels":"radio1,radio2,radio...

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

3498. 分享水波一个shader [ 38%]

...hader3D.PERIOD_MATERIAL,   }  var shader:Shader3D = Shader3D.add("Test1",true); var subShader:SubShader = new SubShader(attributeMap,uniformMap); shader.addSubShader(subShader); subShader.addShaderPass(vs,ps);  this.setShaderName("Test1"); }  set mainTex(value:BaseTexture) { this._shaderValues.s...

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

3499. laya.gltf.glTFUtils_API3.0 [ 37%]

... context: string extraName: string Default value recoverHandler: boolean = true Returns void Static _createMesh _createMesh(glTFMesh: glTFMesh, glTFSkin?: glTFSkin): Mesh Defined in laya/gltf/glTFUtils.ts:1253 创建 Mesh Parameters glTFMesh: glTFMesh Optional glTFSkin: glTFSkin Returns Mesh Static ...

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

3500. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 37%]

...a.Shader3D.propertyNameToID("u_MainCol"); CMat.initShader(); this.inited = true; } this.setShaderName("CMatShader"); } public SetMainTex(value) { this._shaderValues.setTexture(CMat._mainTex, value); } public SetMainCol(value) { this._shaderValues.setVector3(CMat._mainCol, value); } /** * 设置渲...

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