Search Unity

Question Can the VariableDeclerations Method be used to set Saved Variables in C#?

Discussion in 'Visual Scripting' started by apiotuch_unity, Nov 24, 2022.

  1. apiotuch_unity

    apiotuch_unity

    Joined:
    Jun 28, 2019
    Posts:
    138
    Can we use VariableDeclerations in script to update Visual Graph saved variables? Or is this an internally used method only? We are simply trying to set initial data at build time. It seems like it is working for us, I am just wondering if Unity intends to deprecate this method in the future or if it is volatile? The documentation is unclear on the intended use of this method.
     
  2. apiotuch_unity

    apiotuch_unity

    Joined:
    Jun 28, 2019
    Posts:
    138
    iOS doesn't seem to be working with this method, but it could be due to multiple post process build methods modifying the plist where one could be overwriting the other, or a race condition since it seems like Unity is not awaiting async operations in the post process build. We are fetching data view a web request and we didn't see any call occurring using a coroutine, so we are trying to use an async operation callback to complete the process. Android seemed ok so far though.