Skip to content

Commit 474b4d1

Browse files
Added Reset method to Property.
1 parent ddf2f30 commit 474b4d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

UnityMapper/API/Properties.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ int GetVectorLength()
4040
/// <returns>An object of the same type returned by <see cref="GetMappedType"/>. If the type is different, an exception will be thrown.</returns>
4141
object GetValue();
4242

43+
/// <summary>
44+
/// Called by UnityMapper to reset the property to a default state.
45+
///
46+
/// This is called usually when an instance is released.
47+
/// </summary>
48+
void Reset()
49+
{
50+
51+
}
52+
4353
/// <summary>
4454
/// Used to name the corresponding signal in the libmapper graph.
4555
/// </summary>

0 commit comments

Comments
 (0)