Tanoda
UndoTransform.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
using
System.Collections;
3
4
namespace
GILES
5
{
6
public
class
UndoTransform
:
IUndo
7
{
8
public
Transform
target
;
9
10
public
UndoTransform
(Transform
target
)
11
{
12
this.target =
target
;
13
}
14
15
public
Hashtable
RecordState
()
16
{
17
Hashtable hash =
new
Hashtable();
18
hash.Add(
"target"
,
target
);
19
hash.Add(
"transform"
,
new
pb_Transform
(
target
));
20
HttpCookie.SetCookie(
"unsavedChanges"
,
"true"
,
""
,
"/"
,
""
,
""
);
21
return
hash;
22
}
23
24
public
void
ApplyState
(Hashtable values)
25
{
26
this.target = (Transform) values[
"target"
];
27
pb_Transform
ser = (
pb_Transform
) values[
"transform"
];
28
this.target.
SetTRS
(ser);
29
}
30
31
public
void
OnExitScope
() {}
32
}
33
}
GILES.UndoTransform
Definition:
UndoTransform.cs:7
GILES.UndoTransform.RecordState
Hashtable RecordState()
Definition:
UndoTransform.cs:15
GILES.UndoTransform.UndoTransform
UndoTransform(Transform target)
Definition:
UndoTransform.cs:10
GILES.UndoTransform.OnExitScope
void OnExitScope()
Definition:
UndoTransform.cs:31
GILES.UndoTransform.ApplyState
void ApplyState(Hashtable values)
Definition:
UndoTransform.cs:24
GILES.UndoTransform.target
Transform target
Definition:
UndoTransform.cs:8
GILES.pb_Transform
Definition:
pb_Transform.cs:10
GILES.pb_Transform.SetTRS
void SetTRS(Transform trs)
Definition:
pb_Transform.cs:211
GILES.IUndo
Definition:
IUndo.cs:10
GILES
Definition:
pb_CollectionUtil.cs:4
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
GILES
Code
Classes
Undo
UndoTransform.cs
Generated by
1.9.3