Skip to content

Commit e2b7a2c

Browse files
committed
Initial code commit
+Time rewind implementation with demo-scene, documented code and examples how to customize it for own purposes
1 parent 41ba7e0 commit e2b7a2c

143 files changed

Lines changed: 185016 additions & 0 deletions

File tree

Some content is hidden

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

.vsconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "1.0",
3+
"components": [
4+
"Microsoft.VisualStudio.Workload.ManagedGame"
5+
]
6+
}

Assets/Animation.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 368 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,368 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!74 &7400000
4+
AnimationClip:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_Name: AutoResizeAnim
10+
serializedVersion: 6
11+
m_Legacy: 0
12+
m_Compressed: 0
13+
m_UseHighQualityCurve: 1
14+
m_RotationCurves: []
15+
m_CompressedRotationCurves: []
16+
m_EulerCurves: []
17+
m_PositionCurves: []
18+
m_ScaleCurves: []
19+
m_FloatCurves:
20+
- curve:
21+
serializedVersion: 2
22+
m_Curve:
23+
- serializedVersion: 3
24+
time: 0
25+
value: 20
26+
inSlope: 50
27+
outSlope: 50
28+
tangentMode: 34
29+
weightedMode: 0
30+
inWeight: 0.33333334
31+
outWeight: 0.33333334
32+
- serializedVersion: 3
33+
time: 12
34+
value: 620
35+
inSlope: 50
36+
outSlope: 50
37+
tangentMode: 34
38+
weightedMode: 0
39+
inWeight: 0.33333334
40+
outWeight: 0.33333334
41+
m_PreInfinity: 2
42+
m_PostInfinity: 2
43+
m_RotationOrder: 4
44+
attribute: m_SizeDelta.x
45+
path:
46+
classID: 224
47+
script: {fileID: 0}
48+
- curve:
49+
serializedVersion: 2
50+
m_Curve:
51+
- serializedVersion: 3
52+
time: 0
53+
value: -600
54+
inSlope: 50
55+
outSlope: 50
56+
tangentMode: 34
57+
weightedMode: 0
58+
inWeight: 0.33333334
59+
outWeight: 0.33333334
60+
- serializedVersion: 3
61+
time: 12
62+
value: 0
63+
inSlope: 50
64+
outSlope: 50
65+
tangentMode: 34
66+
weightedMode: 0
67+
inWeight: 0.33333334
68+
outWeight: 0.33333334
69+
m_PreInfinity: 2
70+
m_PostInfinity: 2
71+
m_RotationOrder: 4
72+
attribute: m_AnchoredPosition.x
73+
path:
74+
classID: 224
75+
script: {fileID: 0}
76+
- curve:
77+
serializedVersion: 2
78+
m_Curve:
79+
- serializedVersion: 3
80+
time: 0
81+
value: 0
82+
inSlope: -0.99916667
83+
outSlope: -0.99916667
84+
tangentMode: 34
85+
weightedMode: 0
86+
inWeight: 0.33333334
87+
outWeight: 0.33333334
88+
- serializedVersion: 3
89+
time: 12
90+
value: -11.99
91+
inSlope: -0.99916667
92+
outSlope: -0.99916667
93+
tangentMode: 34
94+
weightedMode: 0
95+
inWeight: 0.33333334
96+
outWeight: 0.33333334
97+
m_PreInfinity: 2
98+
m_PostInfinity: 2
99+
m_RotationOrder: 4
100+
attribute: m_MinValue
101+
path:
102+
classID: 114
103+
script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
104+
- curve:
105+
serializedVersion: 2
106+
m_Curve:
107+
- serializedVersion: 3
108+
time: 0
109+
value: 305
110+
inSlope: -25
111+
outSlope: -25
112+
tangentMode: 34
113+
weightedMode: 0
114+
inWeight: 0.33333334
115+
outWeight: 0.33333334
116+
- serializedVersion: 3
117+
time: 12
118+
value: 5
119+
inSlope: -25
120+
outSlope: -25
121+
tangentMode: 34
122+
weightedMode: 0
123+
inWeight: 0.33333334
124+
outWeight: 0.33333334
125+
m_PreInfinity: 2
126+
m_PostInfinity: 2
127+
m_RotationOrder: 4
128+
attribute: m_AnchoredPosition.x
129+
path: Background (1)
130+
classID: 224
131+
script: {fileID: 0}
132+
- curve:
133+
serializedVersion: 2
134+
m_Curve:
135+
- serializedVersion: 3
136+
time: 0
137+
value: 590
138+
inSlope: -50
139+
outSlope: -50
140+
tangentMode: 34
141+
weightedMode: 0
142+
inWeight: 0.33333334
143+
outWeight: 0.33333334
144+
- serializedVersion: 3
145+
time: 12
146+
value: -10
147+
inSlope: -50
148+
outSlope: -50
149+
tangentMode: 34
150+
weightedMode: 0
151+
inWeight: 0.33333334
152+
outWeight: 0.33333334
153+
m_PreInfinity: 2
154+
m_PostInfinity: 2
155+
m_RotationOrder: 4
156+
attribute: m_SizeDelta.x
157+
path: Background (1)
158+
classID: 224
159+
script: {fileID: 0}
160+
m_PPtrCurves: []
161+
m_SampleRate: 60
162+
m_WrapMode: 0
163+
m_Bounds:
164+
m_Center: {x: 0, y: 0, z: 0}
165+
m_Extent: {x: 0, y: 0, z: 0}
166+
m_ClipBindingConstant:
167+
genericBindings:
168+
- serializedVersion: 2
169+
path: 0
170+
attribute: 1967290853
171+
script: {fileID: 0}
172+
typeID: 224
173+
customType: 28
174+
isPPtrCurve: 0
175+
- serializedVersion: 2
176+
path: 0
177+
attribute: 1460864421
178+
script: {fileID: 0}
179+
typeID: 224
180+
customType: 28
181+
isPPtrCurve: 0
182+
- serializedVersion: 2
183+
path: 0
184+
attribute: 4003748124
185+
script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
186+
typeID: 114
187+
customType: 0
188+
isPPtrCurve: 0
189+
- serializedVersion: 2
190+
path: 2550843162
191+
attribute: 1460864421
192+
script: {fileID: 0}
193+
typeID: 224
194+
customType: 28
195+
isPPtrCurve: 0
196+
- serializedVersion: 2
197+
path: 2550843162
198+
attribute: 1967290853
199+
script: {fileID: 0}
200+
typeID: 224
201+
customType: 28
202+
isPPtrCurve: 0
203+
pptrCurveMapping: []
204+
m_AnimationClipSettings:
205+
serializedVersion: 2
206+
m_AdditiveReferencePoseClip: {fileID: 0}
207+
m_AdditiveReferencePoseTime: 0
208+
m_StartTime: 0
209+
m_StopTime: 12
210+
m_OrientationOffsetY: 0
211+
m_Level: 0
212+
m_CycleOffset: 0
213+
m_HasAdditiveReferencePose: 0
214+
m_LoopTime: 0
215+
m_LoopBlend: 0
216+
m_LoopBlendOrientation: 0
217+
m_LoopBlendPositionY: 0
218+
m_LoopBlendPositionXZ: 0
219+
m_KeepOriginalOrientation: 0
220+
m_KeepOriginalPositionY: 1
221+
m_KeepOriginalPositionXZ: 0
222+
m_HeightFromFeet: 0
223+
m_Mirror: 0
224+
m_EditorCurves:
225+
- curve:
226+
serializedVersion: 2
227+
m_Curve:
228+
- serializedVersion: 3
229+
time: 0
230+
value: 20
231+
inSlope: 50
232+
outSlope: 50
233+
tangentMode: 34
234+
weightedMode: 0
235+
inWeight: 0.33333334
236+
outWeight: 0.33333334
237+
- serializedVersion: 3
238+
time: 12
239+
value: 620
240+
inSlope: 50
241+
outSlope: 50
242+
tangentMode: 34
243+
weightedMode: 0
244+
inWeight: 0.33333334
245+
outWeight: 0.33333334
246+
m_PreInfinity: 2
247+
m_PostInfinity: 2
248+
m_RotationOrder: 4
249+
attribute: m_SizeDelta.x
250+
path:
251+
classID: 224
252+
script: {fileID: 0}
253+
- curve:
254+
serializedVersion: 2
255+
m_Curve:
256+
- serializedVersion: 3
257+
time: 0
258+
value: -600
259+
inSlope: 50
260+
outSlope: 50
261+
tangentMode: 34
262+
weightedMode: 0
263+
inWeight: 0.33333334
264+
outWeight: 0.33333334
265+
- serializedVersion: 3
266+
time: 12
267+
value: 0
268+
inSlope: 50
269+
outSlope: 50
270+
tangentMode: 34
271+
weightedMode: 0
272+
inWeight: 0.33333334
273+
outWeight: 0.33333334
274+
m_PreInfinity: 2
275+
m_PostInfinity: 2
276+
m_RotationOrder: 4
277+
attribute: m_AnchoredPosition.x
278+
path:
279+
classID: 224
280+
script: {fileID: 0}
281+
- curve:
282+
serializedVersion: 2
283+
m_Curve:
284+
- serializedVersion: 3
285+
time: 0
286+
value: 0
287+
inSlope: -0.99916667
288+
outSlope: -0.99916667
289+
tangentMode: 34
290+
weightedMode: 0
291+
inWeight: 0.33333334
292+
outWeight: 0.33333334
293+
- serializedVersion: 3
294+
time: 12
295+
value: -11.99
296+
inSlope: -0.99916667
297+
outSlope: -0.99916667
298+
tangentMode: 34
299+
weightedMode: 0
300+
inWeight: 0.33333334
301+
outWeight: 0.33333334
302+
m_PreInfinity: 2
303+
m_PostInfinity: 2
304+
m_RotationOrder: 4
305+
attribute: m_MinValue
306+
path:
307+
classID: 114
308+
script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
309+
- curve:
310+
serializedVersion: 2
311+
m_Curve:
312+
- serializedVersion: 3
313+
time: 0
314+
value: 305
315+
inSlope: -25
316+
outSlope: -25
317+
tangentMode: 34
318+
weightedMode: 0
319+
inWeight: 0.33333334
320+
outWeight: 0.33333334
321+
- serializedVersion: 3
322+
time: 12
323+
value: 5
324+
inSlope: -25
325+
outSlope: -25
326+
tangentMode: 34
327+
weightedMode: 0
328+
inWeight: 0.33333334
329+
outWeight: 0.33333334
330+
m_PreInfinity: 2
331+
m_PostInfinity: 2
332+
m_RotationOrder: 4
333+
attribute: m_AnchoredPosition.x
334+
path: Background (1)
335+
classID: 224
336+
script: {fileID: 0}
337+
- curve:
338+
serializedVersion: 2
339+
m_Curve:
340+
- serializedVersion: 3
341+
time: 0
342+
value: 590
343+
inSlope: -50
344+
outSlope: -50
345+
tangentMode: 34
346+
weightedMode: 0
347+
inWeight: 0.33333334
348+
outWeight: 0.33333334
349+
- serializedVersion: 3
350+
time: 12
351+
value: -10
352+
inSlope: -50
353+
outSlope: -50
354+
tangentMode: 34
355+
weightedMode: 0
356+
inWeight: 0.33333334
357+
outWeight: 0.33333334
358+
m_PreInfinity: 2
359+
m_PostInfinity: 2
360+
m_RotationOrder: 4
361+
attribute: m_SizeDelta.x
362+
path: Background (1)
363+
classID: 224
364+
script: {fileID: 0}
365+
m_EulerEditorCurves: []
366+
m_HasGenericRootTransform: 0
367+
m_HasMotionFloatCurves: 0
368+
m_Events: []

Assets/Animation/AutoResizeAnim.anim.meta

Lines changed: 8 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)