Skip to content

Commit 3a603e9

Browse files
committed
Merge branch 'feature/data-objects' into develop
2 parents 67f5c28 + e4ae562 commit 3a603e9

File tree

136 files changed

+2226
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2226
-0
lines changed

Assets/AdncAnimatorVariableStates.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdncAnimatorVariableStates/Editor.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdncAnimatorVariableStates/Editor/Scripts.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdncAnimatorVariableStates/Editor/Scripts/CustomEditors.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdncAnimatorVariableStates/Editor/Scripts/CustomEditors/AnimatorPlayback.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEditor;
4+
using UnityEngine;
5+
6+
namespace Adnc.AnimatorVariables.Editors.CustomEditors {
7+
[CustomEditor(typeof(AnimatorPlayback))]
8+
public class AnimatorPlaybackEditor : Editor {
9+
private SortableListAnimatorVariable _listBools;
10+
private SortableListAnimatorVariable _listFloats;
11+
private SortableListAnimatorVariable _listInts;
12+
private SortableListAnimatorVariable _listTriggers;
13+
14+
private void OnEnable () {
15+
_listBools = new SortableListAnimatorVariable(this, "bools", "Set Bools");
16+
_listFloats = new SortableListAnimatorVariable(this, "floats", "Set Floats");
17+
_listInts = new SortableListAnimatorVariable(this, "ints", "Set Ints");
18+
_listTriggers = new SortableListAnimatorVariable(this, "triggers", "Set Triggers");
19+
}
20+
21+
public override void OnInspectorGUI () {
22+
serializedObject.Update();
23+
24+
_listBools.Update();
25+
_listFloats.Update();
26+
_listInts.Update();
27+
_listTriggers.Update();
28+
29+
var propWait = serializedObject.FindProperty("waitForCondition");
30+
EditorGUILayout.PropertyField(propWait);
31+
32+
if (propWait.boolValue) {
33+
var propCondition = serializedObject.FindProperty("conditions");
34+
EditorGUILayout.PropertyField(propCondition, true);
35+
}
36+
37+
serializedObject.ApplyModifiedProperties();
38+
}
39+
}
40+
}

Assets/AdncAnimatorVariableStates/Editor/Scripts/CustomEditors/AnimatorPlayback/AnimatorPlaybackEditor.cs.meta

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using Adnc.Utility.Editors;
4+
using UnityEditor;
5+
using UnityEngine;
6+
7+
namespace Adnc.AnimatorVariables.Editors.CustomEditors {
8+
public class SortableListAnimatorVariable : SortableListBase {
9+
public SortableListAnimatorVariable (Editor editor, string property, string title) : base(editor, property, title) {
10+
_list.drawElementCallback = (rect, index, active, focused) => {
11+
var element = _serializedProp.GetArrayElementAtIndex(index);
12+
var propName = element.FindPropertyRelative("name");
13+
var propValue = element.FindPropertyRelative("value");
14+
15+
rect.height -= EditorGUIUtility.standardVerticalSpacing;
16+
17+
if (propValue != null) {
18+
var col1 = rect;
19+
col1.width /= 2;
20+
col1.width -= EditorGUIUtility.standardVerticalSpacing;
21+
EditorGUI.PropertyField(col1, propName, new GUIContent());
22+
23+
var col2 = col1;
24+
col2.x += col1.width + EditorGUIUtility.standardVerticalSpacing;
25+
EditorGUI.PropertyField(col2, propValue, new GUIContent());
26+
} else {
27+
EditorGUI.PropertyField(rect, propName, new GUIContent());
28+
}
29+
};
30+
}
31+
}
32+
}
33+

Assets/AdncAnimatorVariableStates/Editor/Scripts/CustomEditors/AnimatorPlayback/SortableListAnimatorVariable.cs.meta

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdncAnimatorVariableStates/Examples.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdncAnimatorVariableStates/Examples/Default.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!29 &1
4+
OcclusionCullingSettings:
5+
m_ObjectHideFlags: 0
6+
serializedVersion: 2
7+
m_OcclusionBakeSettings:
8+
smallestOccluder: 5
9+
smallestHole: 0.25
10+
backfaceThreshold: 100
11+
m_SceneGUID: 00000000000000000000000000000000
12+
m_OcclusionCullingData: {fileID: 0}
13+
--- !u!104 &2
14+
RenderSettings:
15+
m_ObjectHideFlags: 0
16+
serializedVersion: 8
17+
m_Fog: 0
18+
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19+
m_FogMode: 3
20+
m_FogDensity: 0.01
21+
m_LinearFogStart: 0
22+
m_LinearFogEnd: 300
23+
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24+
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25+
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
26+
m_AmbientIntensity: 1
27+
m_AmbientMode: 3
28+
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29+
m_SkyboxMaterial: {fileID: 0}
30+
m_HaloStrength: 0.5
31+
m_FlareStrength: 1
32+
m_FlareFadeSpeed: 3
33+
m_HaloTexture: {fileID: 0}
34+
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35+
m_DefaultReflectionMode: 0
36+
m_DefaultReflectionResolution: 128
37+
m_ReflectionBounces: 1
38+
m_ReflectionIntensity: 1
39+
m_CustomReflection: {fileID: 0}
40+
m_Sun: {fileID: 0}
41+
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
42+
--- !u!157 &3
43+
LightmapSettings:
44+
m_ObjectHideFlags: 0
45+
serializedVersion: 11
46+
m_GIWorkflowMode: 1
47+
m_GISettings:
48+
serializedVersion: 2
49+
m_BounceScale: 1
50+
m_IndirectOutputScale: 1
51+
m_AlbedoBoost: 1
52+
m_TemporalCoherenceThreshold: 1
53+
m_EnvironmentLightingMode: 0
54+
m_EnableBakedLightmaps: 0
55+
m_EnableRealtimeLightmaps: 0
56+
m_LightmapEditorSettings:
57+
serializedVersion: 9
58+
m_Resolution: 2
59+
m_BakeResolution: 40
60+
m_TextureWidth: 1024
61+
m_TextureHeight: 1024
62+
m_AO: 0
63+
m_AOMaxDistance: 1
64+
m_CompAOExponent: 1
65+
m_CompAOExponentDirect: 0
66+
m_Padding: 2
67+
m_LightmapParameters: {fileID: 0}
68+
m_LightmapsBakeMode: 1
69+
m_TextureCompression: 1
70+
m_FinalGather: 0
71+
m_FinalGatherFiltering: 1
72+
m_FinalGatherRayCount: 256
73+
m_ReflectionCompression: 2
74+
m_MixedBakeMode: 2
75+
m_BakeBackend: 0
76+
m_PVRSampling: 1
77+
m_PVRDirectSampleCount: 32
78+
m_PVRSampleCount: 500
79+
m_PVRBounces: 2
80+
m_PVRFilterTypeDirect: 0
81+
m_PVRFilterTypeIndirect: 0
82+
m_PVRFilterTypeAO: 0
83+
m_PVRFilteringMode: 1
84+
m_PVRCulling: 1
85+
m_PVRFilteringGaussRadiusDirect: 1
86+
m_PVRFilteringGaussRadiusIndirect: 5
87+
m_PVRFilteringGaussRadiusAO: 2
88+
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
89+
m_PVRFilteringAtrousPositionSigmaIndirect: 2
90+
m_PVRFilteringAtrousPositionSigmaAO: 1
91+
m_LightingDataAsset: {fileID: 0}
92+
m_UseShadowmask: 1
93+
--- !u!196 &4
94+
NavMeshSettings:
95+
serializedVersion: 2
96+
m_ObjectHideFlags: 0
97+
m_BuildSettings:
98+
serializedVersion: 2
99+
agentTypeID: 0
100+
agentRadius: 0.5
101+
agentHeight: 2
102+
agentSlope: 45
103+
agentClimb: 0.4
104+
ledgeDropHeight: 0
105+
maxJumpAcrossDistance: 0
106+
minRegionArea: 2
107+
manualCellSize: 0
108+
cellSize: 0.16666667
109+
manualTileSize: 0
110+
tileSize: 256
111+
accuratePlacement: 0
112+
debug:
113+
m_Flags: 0
114+
m_NavMeshData: {fileID: 0}
115+
--- !u!1 &1536667014
116+
GameObject:
117+
m_ObjectHideFlags: 0
118+
m_PrefabParentObject: {fileID: 0}
119+
m_PrefabInternal: {fileID: 0}
120+
serializedVersion: 5
121+
m_Component:
122+
- component: {fileID: 1536667018}
123+
- component: {fileID: 1536667017}
124+
- component: {fileID: 1536667016}
125+
- component: {fileID: 1536667015}
126+
m_Layer: 0
127+
m_Name: Main Camera
128+
m_TagString: MainCamera
129+
m_Icon: {fileID: 0}
130+
m_NavMeshLayer: 0
131+
m_StaticEditorFlags: 0
132+
m_IsActive: 1
133+
--- !u!81 &1536667015
134+
AudioListener:
135+
m_ObjectHideFlags: 0
136+
m_PrefabParentObject: {fileID: 0}
137+
m_PrefabInternal: {fileID: 0}
138+
m_GameObject: {fileID: 1536667014}
139+
m_Enabled: 1
140+
--- !u!124 &1536667016
141+
Behaviour:
142+
m_ObjectHideFlags: 0
143+
m_PrefabParentObject: {fileID: 0}
144+
m_PrefabInternal: {fileID: 0}
145+
m_GameObject: {fileID: 1536667014}
146+
m_Enabled: 1
147+
--- !u!20 &1536667017
148+
Camera:
149+
m_ObjectHideFlags: 0
150+
m_PrefabParentObject: {fileID: 0}
151+
m_PrefabInternal: {fileID: 0}
152+
m_GameObject: {fileID: 1536667014}
153+
m_Enabled: 1
154+
serializedVersion: 2
155+
m_ClearFlags: 1
156+
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
157+
m_NormalizedViewPortRect:
158+
serializedVersion: 2
159+
x: 0
160+
y: 0
161+
width: 1
162+
height: 1
163+
near clip plane: 0.3
164+
far clip plane: 1000
165+
field of view: 60
166+
orthographic: 1
167+
orthographic size: 5
168+
m_Depth: -1
169+
m_CullingMask:
170+
serializedVersion: 2
171+
m_Bits: 4294967295
172+
m_RenderingPath: -1
173+
m_TargetTexture: {fileID: 0}
174+
m_TargetDisplay: 0
175+
m_TargetEye: 3
176+
m_HDR: 1
177+
m_AllowMSAA: 1
178+
m_ForceIntoRT: 0
179+
m_OcclusionCulling: 1
180+
m_StereoConvergence: 10
181+
m_StereoSeparation: 0.022
182+
--- !u!4 &1536667018
183+
Transform:
184+
m_ObjectHideFlags: 0
185+
m_PrefabParentObject: {fileID: 0}
186+
m_PrefabInternal: {fileID: 0}
187+
m_GameObject: {fileID: 1536667014}
188+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
189+
m_LocalPosition: {x: 0, y: 0, z: -10}
190+
m_LocalScale: {x: 1, y: 1, z: 1}
191+
m_Children: []
192+
m_Father: {fileID: 0}
193+
m_RootOrder: 0
194+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

Assets/AdncAnimatorVariableStates/Examples/Default/Default.unity.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)