add ckg
plantilla base para movimiento básico
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Follow the steps from the instructions on this file:
|
||||
|
||||
https://drive.google.com/file/d/1-dBjwav-uG4lwwN2gxnrbL3Yx2G5zy28/view?usp=sharing
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 208c65a1b56c6544ca74e7c9a9ba6745
|
||||
timeCreated: 1619497927
|
||||
licenseType: Store
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
assetPath: Assets/Game Kit Controller/Documentation/Integrations/UMA/UMA 2 Integration.txt
|
||||
uploadId: 814740
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 08832ae00645022449e9c31a88ced701
|
||||
folderAsset: yes
|
||||
timeCreated: 1615985357
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,51 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class UMAIgnoreTransformAndChilds : MonoBehaviour
|
||||
{
|
||||
[Header ("Main Settings")]
|
||||
[Space]
|
||||
|
||||
public List<Transform> childsToIgnore = new List<Transform> ();
|
||||
|
||||
[Space]
|
||||
[Header ("Debug")]
|
||||
[Space]
|
||||
|
||||
public List<Transform> objectsToIgnoreChildren = new List<Transform> ();
|
||||
|
||||
public int numberOfChilds;
|
||||
|
||||
|
||||
public void removeChildList ()
|
||||
{
|
||||
objectsToIgnoreChildren.Clear ();
|
||||
|
||||
numberOfChilds = 0;
|
||||
}
|
||||
|
||||
public List<Transform> getChildrenList ()
|
||||
{
|
||||
return objectsToIgnoreChildren;
|
||||
}
|
||||
|
||||
public void setChildrenList ()
|
||||
{
|
||||
objectsToIgnoreChildren.Clear ();
|
||||
|
||||
numberOfChilds = 0;
|
||||
|
||||
for (int i = 0; i < childsToIgnore.Count; i++) {
|
||||
Transform child = childsToIgnore [i];
|
||||
|
||||
Component[] childrens = child.GetComponentsInChildren (typeof(Transform), true);
|
||||
|
||||
foreach (Transform currentTransform in childrens) {
|
||||
objectsToIgnoreChildren.Add (currentTransform);
|
||||
}
|
||||
}
|
||||
|
||||
numberOfChilds = objectsToIgnoreChildren.Count;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5291746a2342ae44b1fed9144909753
|
||||
timeCreated: 1615985366
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
assetPath: Assets/Game Kit Controller/Documentation/Integrations/UMA/UMA/UMAIgnoreTransformAndChilds.cs
|
||||
uploadId: 814740
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
|
||||
[CustomEditor (typeof(UMAIgnoreTransformAndChilds))]
|
||||
public class UMAIgnoreTransformAndChildsEditor : Editor
|
||||
{
|
||||
UMAIgnoreTransformAndChilds manager;
|
||||
|
||||
void OnEnable ()
|
||||
{
|
||||
manager = (UMAIgnoreTransformAndChilds)target;
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI ()
|
||||
{
|
||||
DrawDefaultInspector ();
|
||||
|
||||
EditorGUILayout.Space ();
|
||||
|
||||
GUILayout.Label ("EDITOR BUTTONS", EditorStyles.boldLabel);
|
||||
|
||||
EditorGUILayout.Space ();
|
||||
|
||||
if (GUILayout.Button ("Add Transforms To Ignore")) {
|
||||
manager.setChildrenList ();
|
||||
}
|
||||
if (GUILayout.Button ("Remove Transforms To Ignore")) {
|
||||
manager.removeChildList ();
|
||||
}
|
||||
|
||||
EditorGUILayout.Space ();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,19 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e3032e8bebeda15408c78402099d1ab3
|
||||
timeCreated: 1615985366
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
assetPath: Assets/Game Kit Controller/Documentation/Integrations/UMA/UMA/UMAIgnoreTransformAndChildsEditor.cs
|
||||
uploadId: 814740
|
||||
Reference in New Issue
Block a user