提交修改
This commit is contained in:
parent
9842989d6f
commit
a2df947b2e
8
Assets/Projects/Scripts.meta
Normal file
8
Assets/Projects/Scripts.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ccd52ba3d04115d48a99dce1919957e3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
22
Assets/Projects/Scripts/AutoAddCollision.cs
Normal file
22
Assets/Projects/Scripts/AutoAddCollision.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Projects/Scripts/AutoAddCollision.cs.meta
Normal file
11
Assets/Projects/Scripts/AutoAddCollision.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b2dcc9b6f36e39244ba3fefbf624e4bd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
50793
Assets/Scenes/Test.unity
50793
Assets/Scenes/Test.unity
File diff suppressed because it is too large
Load Diff
@ -51,12 +51,12 @@ public class Show3DCamera : MonoBehaviour
|
||||
// 初始化相机位置
|
||||
this.inputRect = inputRect;
|
||||
this.targetPos = target.transform.position;
|
||||
//this.rotateSpeed = rotateSpeed;
|
||||
//this.moveSpeed = moveSpeed;
|
||||
//this.distance = distance;
|
||||
//this.distanceMin = distanceMin;
|
||||
//this.distanceMax = distanceMax;
|
||||
//this.pitchMinMax = new Vector2(pitchMin, pitchMax);
|
||||
this.rotateSpeed = rotateSpeed;
|
||||
this.moveSpeed = moveSpeed;
|
||||
this.distance = distance;
|
||||
this.distanceMin = distanceMin;
|
||||
this.distanceMax = distanceMax;
|
||||
this.pitchMinMax = new Vector2(pitchMin, pitchMax);
|
||||
// 初始化相机位置
|
||||
offset = new Vector3(0, 0, -distance);
|
||||
|
||||
@ -73,6 +73,7 @@ public class Show3DCamera : MonoBehaviour
|
||||
|
||||
|
||||
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (targetPos != null && lockMove == false && EventSystem.current.IsPointerOverGameObject() == false)
|
||||
|
||||
@ -244,7 +244,9 @@ namespace QFramework.Example
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
protected override void OnShow()
|
||||
|
||||
@ -106,9 +106,10 @@
|
||||
</Body>
|
||||
</Body>--><!--
|
||||
</Body>-->
|
||||
|
||||
|
||||
|
||||
<Body name="头部" icon="" path="Ren_NEW" isBodyList="true" >
|
||||
|
||||
|
||||
|
||||
|
||||
<Body name="骨骼" icon="" path="Ren_NEW/SM_GuGe" >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user