Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

VFXPropertyBinder how to add properties by script

Discussion in 'Scripting' started by fwalker, Nov 21, 2020.

  1. fwalker

    fwalker

    Joined:
    Feb 5, 2013
    Posts:
    249
    I have a VFXPropetyBinder with two bindings set through the editor, each with a property name and a target, one is a SphereCollider the other a Transform.

    I need to change these bindings to bind to different object through script and I am not sure how those binding relate to the AddPropertyBinder<VFXBinderBase>(); of the VFXPropetyBinder object.

    I am missing something obvious :( Can someone shed some light, please?
     
  2. KyleRLamble

    KyleRLamble

    Joined:
    Jan 13, 2014
    Posts:
    6
    Bump please, I am also finding it really difficult to learn anything on how to set property binders via script.