Search Unity

Question VisualEffects SetFloat value not found

Discussion in 'Visual Effect Graph' started by Vyacheslav_Vasilev, Sep 21, 2022.

  1. Vyacheslav_Vasilev

    Vyacheslav_Vasilev

    Joined:
    Aug 3, 2019
    Posts:
    1
    Hi,

    After trying re-importing whole project (for ex. after remove library project or trying build), i started getting error messages: Value of name 'Property' was not found. This error appears when I try to set property values, for example via visualEffect.SetFloat(PropertyId, Value).

    In similar topics, people write that the problem may be that the vfxGraph property does not have the type that is passed through the code. In my case, everything is fine. I have float value type property in vfx graph and trying use SetFloat in C# code.

    Unity 2022.1.14f1, HDRP 13.1.8, visual effect graph 13.1.8.

    Same issues:
    https://forum.unity.com/threads/can...sual-effect-tansform-property-in-code.828315/
    https://forum.unity.com/threads/urp-cant-access-vfx-exposed-value.925943/
    https://stackoverflow.com/questions...how-can-i-programatically-play-stop-an-effect

    Can this be fixed?

    Thanks.
     
  2. lgarczyn

    lgarczyn

    Joined:
    Nov 23, 2014
    Posts:
    68
    Same issue, it was caused by a missing shadergraph asset in the VFX graph
     
  3. frankfringe

    frankfringe

    Joined:
    Feb 9, 2019
    Posts:
    105
    I have the same problem. I'm importing VFX assets and modifying them (basically copying in a "main" vfx graph which is controlled using compute buffers and which starts the imported systems via GPU events).

    Often, the imported asset works. Similarly, if I connect the output events of my "Main" system to some simple template system (lets say the loop one), I see that the GPU events of my main system are triggered correctly, and everything compiles.

    But as soon as I connect the output GPU event of the main system to the asset, it starts telling me that all kinds of values are not found, quite random which one. Can be SetFloat, SetInt or whatever. But I know that the systems work and the variables are defined, since the same graph works when not connected to the imported assets.