mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Keyframe stretching plus appendage manipulation
This commit is contained in:
parent
18c0473f39
commit
1af7f41d63
427 changed files with 7003 additions and 1147 deletions
22
Assets/Editor/AdvancedPolygonColliderEditor.cs
Normal file
22
Assets/Editor/AdvancedPolygonColliderEditor.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
using System.Collections;
|
||||
|
||||
namespace DigitalRuby.AdvancedPolygonCollider
|
||||
{
|
||||
[CustomEditor(typeof(AdvancedPolygonCollider))]
|
||||
public class AdvancedPolygonColliderEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
|
||||
AdvancedPolygonCollider c = target as AdvancedPolygonCollider;
|
||||
if (c != null)
|
||||
{
|
||||
EditorGUILayout.LabelField("Vertices: " + c.VerticesCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
Assets/Editor/AdvancedPolygonColliderEditor.cs.meta
Normal file
12
Assets/Editor/AdvancedPolygonColliderEditor.cs.meta
Normal file
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 08b096b84c0da4945b145bddb76c3761
|
||||
timeCreated: 1450482984
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -9,6 +9,8 @@ namespace RimWorldAnimationStudio
|
|||
{
|
||||
SerializedProperty ghostSlidersProp;
|
||||
SerializedProperty ghostSliderPrefabProp;
|
||||
SerializedProperty handleImageProp;
|
||||
SerializedProperty soundIconProp;
|
||||
SerializedProperty maxGhostsProp;
|
||||
|
||||
protected override void OnEnable()
|
||||
|
@ -16,6 +18,8 @@ namespace RimWorldAnimationStudio
|
|||
base.OnEnable();
|
||||
ghostSlidersProp = serializedObject.FindProperty("ghostSliders");
|
||||
ghostSliderPrefabProp = serializedObject.FindProperty("ghostSliderPrefab");
|
||||
handleImageProp = serializedObject.FindProperty("handleImage");
|
||||
soundIconProp = serializedObject.FindProperty("soundIcon");
|
||||
maxGhostsProp = serializedObject.FindProperty("maxGhosts");
|
||||
}
|
||||
|
||||
|
@ -23,6 +27,8 @@ namespace RimWorldAnimationStudio
|
|||
{
|
||||
EditorGUILayout.PropertyField(ghostSlidersProp, new GUIContent("Ghost Sliders"));
|
||||
EditorGUILayout.PropertyField(ghostSliderPrefabProp, new GUIContent("Ghost Slider Prefab"));
|
||||
EditorGUILayout.PropertyField(handleImageProp, new GUIContent("Handle Image"));
|
||||
EditorGUILayout.PropertyField(soundIconProp, new GUIContent("Sound Icon"));
|
||||
EditorGUILayout.PropertyField(maxGhostsProp, new GUIContent("Max Ghosts"));
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue