From 4ccd4bc6d126e0e0f51a50aa10c85b9bf48b1210 Mon Sep 17 00:00:00 2001
From: chai <215380520@qq.com>
Date: Wed, 18 Oct 2023 10:16:32 +0800
Subject: + init
---
.../Runtime/Attributes/TargetConstraintAttribute.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs
(limited to 'ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs')
diff --git a/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs b/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs
new file mode 100644
index 0000000..e457e06
--- /dev/null
+++ b/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs
@@ -0,0 +1,12 @@
+using UnityEngine;
+using System;
+
+/// Add to fields of your class extending SerializableCallbackBase to limit which types can be assigned to it.
+public class TargetConstraintAttribute : PropertyAttribute {
+ public Type targetType;
+
+ /// Add to fields of your class extending SerializableCallbackBase to limit which types can be assigned to it.
+ public TargetConstraintAttribute(Type targetType) {
+ this.targetType = targetType;
+ }
+}
--
cgit v1.1-26-g67d0