Merge branch '3DBody' of http://git.zxkedu.com:33769/shenjianxing/VirtualFramework into 3DBody
This commit is contained in:
commit
d4421a6ec8
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
@ -106,9 +106,10 @@
|
|||||||
</Body>
|
</Body>
|
||||||
</Body>--><!--
|
</Body>--><!--
|
||||||
</Body>-->
|
</Body>-->
|
||||||
|
|
||||||
|
|
||||||
<Body name="头部" icon="" path="Ren_NEW" isBodyList="true" >
|
<Body name="头部" icon="" path="Ren_NEW" isBodyList="true" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Body name="骨骼" icon="" path="Ren_NEW/SM_GuGe" >
|
<Body name="骨骼" icon="" path="Ren_NEW/SM_GuGe" >
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user