Class InjectionHook
Inheritance
System.Object
InjectionHook
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Entities
Syntax
public abstract class InjectionHook
Properties
FieldTypeOfInterest
Declaration
public abstract Type FieldTypeOfInterest { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
CreateInjectionInfoFor(FieldInfo, Boolean)
Declaration
public abstract InjectionContext.Entry CreateInjectionInfoFor(FieldInfo field, bool isReadOnly)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | |
System.Boolean | isReadOnly |
Returns
Type | Description |
---|---|
InjectionContext.Entry |
IsInterestedInField(FieldInfo)
Declaration
public abstract bool IsInterestedInField(FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo |
Returns
Type | Description |
---|---|
System.Boolean |
PrepareEntry(ref InjectionContext.Entry, ComponentGroup)
Declaration
public virtual void PrepareEntry(ref InjectionContext.Entry entry, ComponentGroup entityGroup)
Parameters
Type | Name | Description |
---|---|---|
InjectionContext.Entry | entry | |
ComponentGroup | entityGroup |
ValidateField(FieldInfo, Boolean, InjectionContext)
Declaration
public abstract string ValidateField(FieldInfo field, bool isReadOnly, InjectionContext injectionInfo)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | field | |
System.Boolean | isReadOnly | |
InjectionContext | injectionInfo |
Returns
Type | Description |
---|---|
System.String |