Class InjectionHook | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023