summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/ThirdParty/SerializableCallback/Runtime/Attributes/TargetConstraintAttribute.cs
blob: e457e069de68ef086ab148bf5d075c3fe77d0fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
using UnityEngine;
using System;

/// <summary> Add to fields of your class extending SerializableCallbackBase<T,..> to limit which types can be assigned to it. </summary>
public class TargetConstraintAttribute : PropertyAttribute {
	public Type targetType;

	/// <summary> Add to fields of your class extending SerializableCallbackBase<T,..> to limit which types can be assigned to it. </summary>
	public TargetConstraintAttribute(Type targetType) {
		this.targetType = targetType;
	}
}