コード例 #1
0
 /// <summary>
 /// Registers a <see cref="AssetDescription"/> for the specified asset type.
 /// </summary>
 /// <param name="assetType">Type of the asset.</param>
 /// <param name="description">The description.</param>
 public static void RegisterDescription(Type assetType, AssetDescription description)
 {
     if (description == null)
     {
         throw new ArgumentNullException("description");
     }
     AssertAssetType(assetType);
     RegisteredDescriptions[assetType] = description;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetDescriptionAttribute"/> class.
 /// </summary>
 /// <param name="displayName">A user-friendly name describing the asset type.</param>
 /// <param name="description">A sentence describing the purpose of the asset type.</param>
 /// <param name="dynamicThumbnails">Indicates that the thumbnails of the asset type are dynamic and should be regenerated each time a property changes.</param>
 public AssetDescriptionAttribute(string displayName, string description, bool dynamicThumbnails)
 {
     assetDescription = new AssetDescription(displayName, description, dynamicThumbnails);
 }