Class KnotAssetTypeRestrictionMetadata
Editor-only IKnotMetadata for KnotAssetData. Used to restrict asset type that can be assigned to Asset
Inheritance
System.Object
KnotAssetTypeRestrictionMetadata
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Knot.Localization.Data
Assembly: Knot.Localization.dll
Syntax
[Serializable]
[KnotMetadataInfo("Asset Type Restriction", KnotMetadataInfoAttribute.MetadataScope.Asset, false, true)]
public class KnotAssetTypeRestrictionMetadata : IKnotMetadata, ICloneable
Constructors
KnotAssetTypeRestrictionMetadata()
Declaration
public KnotAssetTypeRestrictionMetadata()
KnotAssetTypeRestrictionMetadata(Type)
Declaration
public KnotAssetTypeRestrictionMetadata(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Properties
AssetType
UnityEngine.Object derived type. Returns UnityEngine.Object if AssetType is not assigned or not derived from UnityEngine.Object
Declaration
public Type AssetType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object |
Implements
System.ICloneable