提交修改

This commit is contained in:
李浩 2025-03-11 14:10:38 +08:00
parent 9842989d6f
commit a2df947b2e
7 changed files with 50837 additions and 17 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ccd52ba3d04115d48a99dce1919957e3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
using UnityEngine;
using System.Collections;
public class AutoAddCollision: MonoBehaviour
{
// Use this for initialization
//void Start()
//{
// ModelAddMeshCollider();
//}
[ContextMenu("Ìí¼Ó")]
void ModelAddMeshCollider()
{
foreach (var render in transform.GetComponentsInChildren<MeshRenderer>())
{
render.gameObject.AddComponent<MeshCollider>();
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b2dcc9b6f36e39244ba3fefbf624e4bd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -51,12 +51,12 @@ public class Show3DCamera : MonoBehaviour
// 初始化相机位置 // 初始化相机位置
this.inputRect = inputRect; this.inputRect = inputRect;
this.targetPos = target.transform.position; this.targetPos = target.transform.position;
//this.rotateSpeed = rotateSpeed; this.rotateSpeed = rotateSpeed;
//this.moveSpeed = moveSpeed; this.moveSpeed = moveSpeed;
//this.distance = distance; this.distance = distance;
//this.distanceMin = distanceMin; this.distanceMin = distanceMin;
//this.distanceMax = distanceMax; this.distanceMax = distanceMax;
//this.pitchMinMax = new Vector2(pitchMin, pitchMax); this.pitchMinMax = new Vector2(pitchMin, pitchMax);
// 初始化相机位置 // 初始化相机位置
offset = new Vector3(0, 0, -distance); offset = new Vector3(0, 0, -distance);
@ -73,6 +73,7 @@ public class Show3DCamera : MonoBehaviour
void Update() void Update()
{ {
if (targetPos != null && lockMove == false && EventSystem.current.IsPointerOverGameObject() == false) if (targetPos != null && lockMove == false && EventSystem.current.IsPointerOverGameObject() == false)

View File

@ -244,7 +244,9 @@ namespace QFramework.Example
public void ResetCamera(float moveTime) public void ResetCamera(float moveTime)
{ {
//Show3DCamera.instance.Set(root.transform, distance: 5, isRenderTexture: false, moveTime: moveTime, pitchMin: -80);
Show3DCamera.instance.Set(root.transform, distance: 5, isRenderTexture: false, moveTime: moveTime, pitchMin: -80); Show3DCamera.instance.Set(root.transform, distance: 5, isRenderTexture: false, moveTime: moveTime, pitchMin: -80);
} }
protected override void OnShow() protected override void OnShow()

View File

@ -107,6 +107,7 @@
</Body>--><!-- </Body>--><!--
</Body>--> </Body>-->
<Body name="头部" icon="" path="Ren_NEW" isBodyList="true" > <Body name="头部" icon="" path="Ren_NEW" isBodyList="true" >