using System; using UnityEngine; namespace UnityEditor.VFX { /// /// VFX Template descriptor /// [Serializable] public struct VFXTemplateDescriptor : IVFXTemplateDescriptor { /// /// Name of the template which will be displayed in the template window /// public string name; /// /// Category is used to group templates together in the template window /// public string category; /// /// Give some description to your template so that we know what it's doing /// public string description; /// /// This icon is displayed next to the name in the template window /// public Texture2D icon; /// /// Thumbnail is displayed with the description in the details panel of the template window /// public Texture2D thumbnail; /// /// Internal use only: make the bound with the asset /// [NonSerialized] internal string assetGuid; /// /// Internal use only: allow to sort built-in templates before user templates /// [NonSerialized] internal int order; /// /// Same as the name, inherited from the interface IVFXTemplateDescriptor /// public string header => name; } }