mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-22 07:35:36 +01:00
10 lines
376 B
C#
10 lines
376 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
/// Any of this types or interface types are valid. And only this types can be presented.
|
|
[AttributeUsage(AttributeTargets.Field)]
|
|
public class SerializeReferenceUIRestrictionIncludeTypes : PropertyAttribute
|
|
{
|
|
public readonly Type[] Types;
|
|
public SerializeReferenceUIRestrictionIncludeTypes(params Type[] types) => Types = types;
|
|
} |