docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AssignNewTarget

    AssignNewTarget(GameObject, Component, string, ParameterApplicationFrequency)

    Assigns a new target

    Declaration
    public void AssignNewTarget(GameObject targetObject, Component targetComponent, string fieldOrPropertyName, ParameterApplicationFrequency frequency)
    Parameters
    Type Name Description
    GameObject targetObject

    The target GameObject

    Component targetComponent

    The target component on the target GameObject

    string fieldOrPropertyName

    The name of the property to apply the parameter to

    ParameterApplicationFrequency frequency

    How often to apply the parameter to its target

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)