Setting Values in Inspector

Forums General Discussion Setting Values in Inspector

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Gavalakis 1 month, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2479

    kfjwheeler
    Participant

    I’m new to FlowCanvas, and working on creating a node that would allow the adjustment of post-processing effects.  The effects themselves have a really great inspector interface, and it’s really easy to enable effects and adjust parameters while the game is running (see attached picture).

    Is there a way to easily automate setting or adjusting one of these properties using FlowCanvas?

    Thanks.

     

     

    Attachments:
    You must be logged in to view attached files.
    #2483

    Gavalakis
    Keymaster

    Hello and welcome 🙂

    What kind of automation do you mean? While I am not exactly sure what you are after, you can create a custom node to do pretty much anything you want. You could also if you want customize the node inspector by overriding the OnNodeInspectorGUI method.

    Can you please let me know a bit more details as far as what you are looking for? 🙂

    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #2486

    kfjwheeler
    Participant

    Maybe the actual GUI isn’t necessary.

    What I’m looking for is a way to set any variable that could be set in the inspector.  For instance, in the screenshot above, I would be able to adjust the intensity of chromatic aberration.  Is there some node I can use that is able to set that field value, or any other field value that could be set in the inspector?

    #2488

    Gavalakis
    Keymaster

    Hello again,

    In general, you can simply drag and drop a component into the graph editor and doing so will open up a popup with things you can do with that said component (methods, properties, fields, events etc). With that said however, the Post Processing Stack API is quite complex in the backend and it does not really have any public field/property that simplifies setting the “intensity” of an effect for example. You will instead have to get the profile in use first and then use the AddSettings or RemoveSettings methods (exactly the same way that your would have done in code). As such, I won’t really recommend doing this for this exact use case with Post Processing Stack as it can get quite complex (due to the Post Processing Stack API), but please remember that drag and dropping anything into the graph editor, will pop up a menu for you to utilize any public field, property, method or event that the dragged object has.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.