Search Unity

VFXPropertyBinder how to add properties by script

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

  1. fwalker

    fwalker

    Joined:
    Feb 5, 2013
    Posts:
    255
    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.