-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathGraphViewTemplateDescriptor.cs
More file actions
53 lines (49 loc) · 1.68 KB
/
GraphViewTemplateDescriptor.cs
File metadata and controls
53 lines (49 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using UnityEngine;
namespace UnityEditor.Experimental.GraphView
{
/// <summary>
/// Template descriptor
/// </summary>
[Serializable]
internal struct GraphViewTemplateDescriptor : ITemplateDescriptor
{
/// <summary>
/// Name of the template which will be displayed in the template window
/// </summary>
public string name;
/// <summary>
/// Category is used to group templates together in the template window
/// </summary>
public string category;
/// <summary>
/// Give some description to your template so that we know what it's doing
/// </summary>
public string description;
/// <summary>
/// This icon is displayed next to the name in the template window
/// </summary>
public Texture2D icon;
/// <summary>
/// Thumbnail is displayed with the description in the details panel of the template window
/// </summary>
public Texture2D thumbnail;
/// <summary>
/// Internal use only: make the bound with the asset
/// </summary>
[NonSerialized]
internal string assetGuid;
/// <summary>
/// Internal use only: allow to sort built-in templates before user templates
/// </summary>
[NonSerialized]
internal int order;
/// <summary>
/// Same as the name, inherited from the interface ITemplateDescriptor
/// </summary>
public string header => name;
}
}