Class UnityDataHost<TData>
Template generator with data hosting support
Inherited Members
Namespace: FasterGames.T4.Editor
Assembly: cs.temp.dll.dll
Syntax
public class UnityDataHost<TData> : TemplateGenerator, ITextTemplatingSessionHost, IDataHost<TData> where TData : UnityEngine.Object
Type Parameters
Name | Description |
---|---|
TData | user data type |
Constructors
UnityDataHost(TData, IEnumerable<String>)
Default ctor
Declaration
public UnityDataHost(TData data, IEnumerable<string> additionalRuntimeTypes)
Parameters
Type | Name | Description |
---|---|---|
TData | data | data to host |
System.Collections.Generic.IEnumerable<System.String> | additionalRuntimeTypes | additional types to bring in |
Remarks
If your
Properties
Data
The user data
Declaration
public TData Data { get; }
Property Value
Type | Description |
---|---|
TData |
SpecificHostType
If non-null, the template's Host property will be the full type of this host.
Declaration
public override Type SpecificHostType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Overrides
Methods
CreateInstance(Object, List<String>)
Creates an instance using a runtime type
Declaration
public static TemplateGenerator CreateInstance(object data, List<string> additionalRuntimeTypes)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data | data to host |
System.Collections.Generic.List<System.String> | additionalRuntimeTypes | additional types to bring in |
Returns
Type | Description |
---|---|
TemplateGenerator | Instance of host |
Implements
ITextTemplatingSessionHost