大约有 1,962 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1743) Laya2.0_文档(103) Laya3.0_文档(57) Laya3.0_api(24) Laya2.0_api(18) laya_api(13) Laya_示例(4)
...的纯模型场景找到一个提高帧率的方法: 在unity里面设置物体的shader: 1. 先把render mode 设置成transparent 2. 再把render mode设置成 custom 3. 然后把depth write 设置成 on 通过以上修改,现在微信小游戏里纯模型的场景可以达到60 ...
来源: Laya_社区 发布时间: 20190921
...ToRay(this.point, this.ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(this.ray, this._outHitAllInfo, 30, 0); } private loadUI(): void { this.label = new Laya.Label(); this.label.text = "点击选取的几何体"; this.label.pos(Laya.Browser.clientWidth / 2.5, ...
来源: Laya_社区 发布时间: 20180820
... Methods MethodDefined By _addSelfRenderObjects():void 添加自身渲染物体,请重载此函数。 Sprite3D _clearSelfRenderObjects():void 清理自身渲染物体,请重载此函数。 Sprite3D _parseCustomProps(rootNode:ComponentNode, innerResouMap:Object, customProps:Object, nodeData...
来源: laya_api 发布时间: 20170929
...果,使用方式都是将Shader应用到材质上,再将材质应用到物体上。 使用3D着色器参考《自定义Shader3D》文档,使用2D着色器参考《自定义Shader2D》文档。 3.6 物理系统 LayaAir内置的是Box2D的2D物理引擎,和Bullet、PhysX的3D物理引擎。 2D...
来源: Laya3.0_文档 发布时间: 20251010
...如,制作带有特殊光照效果的2D角色,创建复杂形态的 2D物体,实现复杂的2D特效。 总之,这个组件能够帮助开发者突破传统2D渲染的限制,创造出更加丰富和独特的效果。 二、在LayaAir-IDE中使用 在LayaAir-IDE中,创建一个sprite,...
来源: Laya3.0_文档 发布时间: 20251120
...oint/DistanceJoint" DistanceJoint Class DistanceJoint 距离关节:两个物体上面各自有一点,两点之间的距离固定不变 Hierarchy JointBase DistanceJoint Index Constructors constructor Properties _extra _singleton collideConnected otherAnchor otherBody owner runInEditor scriptPath...
来源: Laya3.0_api 发布时间: 20231115
...2d的方式去实现是不是要简单些。我也刚刚需要做一个3d物体旋转+缩放的功能。也是用2d那边的方式。 2019-06-04 0 4 分享 微博 QZONE 微信 kura 赞同来自: 你应该是没有触摸到Scene3D,所以Scene3D没有触摸点。旋转缩放这些用2d的触摸就...
来源: Laya_社区 发布时间: 20190531
...PrismaticJoint Class PrismaticJoint 平移关节:移动关节允许两个物体沿指定轴相对移动,它会阻止相对旋转 Hierarchy JointBase PrismaticJoint Index Constructors constructor Properties _extra _singleton anchor axis collideConnected otherBody owner runInEditor scriptPath self...
来源: Laya3.0_api 发布时间: 20231115
...参考文档《像素线》。 Trail是拖尾,拖尾渲染器可以制作物体后面的拖尾效果,比如子弹划过产生的空气柱。详细的内容请参考文档《拖尾》。 灯光 灯光节点总共有四种,分别是DirectionLight(平行光)、PointLight(点光源)、Spot...
来源: Laya3.0_文档 发布时间: 20251011
...ed in laya/d3/physics/constraints/ConstraintComponent.ts:81 连接的两个物体是否进行碰撞检测 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdit...
来源: Laya3.0_api 发布时间: 20231115