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 ++++++++++++
.../Runtime/Attributes/TargetConstraintAttribute.cs.meta | 12 ++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs
create mode 100644 ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs.meta
(limited to 'ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes')
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;
+ }
+}
diff --git a/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs.meta b/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs.meta
new file mode 100644
index 0000000..1345b58
--- /dev/null
+++ b/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs.meta
@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: 4b9b7d20cf54ac6489b84d21c29a4c69
+timeCreated: 1536132736
+licenseType: Pro
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
--
cgit v1.1-26-g67d0