My Behaviours?

johnboymacjohnboymac Member Posts: 33
edited November -1 in Working with GS (Mac)
on the behaviours window there is a folder for my behaviours - is there any information on creating custom behaviours - is it even possible at the moment or is this a future enhancement?

J

Comments

  • RattleheadRattlehead Member Posts: 485
    In a nutshell it allows you to take a chunk of logic you have created, store it and then use it in other areas of your project.

    For example, let's say you created one or more behaviours, grouped them together and gave it a useful name that indicated what the body of work did. You can click and drag that group of logic into your My Behaviours folder and it would make a copy of it in the folder for you.

    Then, if you came across another actor in your project (I believe they are only visible within that same project) you could drag and drop your custom behaviour into the new actor. Very valuable if the set of behaviours is complex and you don't want to try and recreate it from scratch.

    BUT... (there is always a catch)

    There are a couple of reasons why the current implementation of this folder is very limited.

    1) Custom behaviours are only available in the current project. You can't start a new project and expect them to be available (pretty sure on this one).

    2) You can't edit or delete behaviours that are currently in the folder. This is a really, really big caveat to be aware of. Make sure you really test your logic before you drop a custom behaviour in there as you a) cannot make changes once it is in there and, b) you can't delete them. I really wish GS would fix this as there is a lot of value to it.

    3) Be aware that if you drag the custom behaviour into a new actor that doesn't have all of the variables that your custom behaviour requires, you are going to need to add them and then either fix the behaviour (which is now in the right hand pane but will have invalid variable references) or delete it and drag it back in.

    Hope that helps.

    -R.-
Sign In or Register to comment.