you can add behaviors to a prefab but not on the prefab editor, only on the scene. On the prefab Editor you can only add beahviors to individual children, but you can’t interact with the children of a Prefab outside the prefab editor.
you can apply functions in the object event sheet but a lot of times it comes handy to anulate a bunch of functions by simply disabling the behaviour that contains them.
I have another feature request regarding the posibility to interact with the childs but this is just about being able to add behaviors to the object that for the momment holds the hit box of the prefab, which is something that will be useful even if the other feature is added.
My Ideal settup is this:
1-A gameCharacterPrefab (I need both features added for this one) for a game that has many playable characters with diferent behaviors and AI, all of the variations are childs of this object;
-The main object runs the creation of its variations, the main hitbox, the variables, the player -ownership on multiplayer and such things.The childs define the size of the hitbox and "artificial inteligence(things like the specific fighting patterns of a character on a fighting game.
This game character Idiealy should be able to directly be imported to any game, with all of its variants, that could inlude all the npcs of a game as well as their 3D models or sprites or whatever.
2-a UIPrtefab (I already have this one)
this object runs all the UI of the game, creates menus, text entries customizable mulktitouch input, storage actions, etc, on the spot without using external layouts.
3-hitBoxPrefab (both features needed for this)
this object runs the creation and lifecycle of things that affect gameCharacters(like:
-fire with behaviors that simulate fire and changes the state of other objects made to interact with it, “burns them”.
-custom projectiles
-items that run their events on their own only when they exist on the scene.
etc.
4-aSceneryPrefab(this one also needs bothe features)
a prefab that creates the world, ¿you want to create your own tile map system instide this object to run complicated stuf like event based terrain generation/modification? ¿why not? ¿want to give ownership of this object to a player and turn them into remote dungeon master for your online tabletop with 3D animations VR implementation? ¿Want to let players save their custom level layouts and share them? This object can run your game like a scene, with the difference that you can summon it on any scene you want, ¿have you ever wondered how do I change a scene after the lobby game started, or, How do I have players on the same lobby interact with diferent scenes at the same time? this is one answer to that question.
A lot of feature requests and comonly asked questions are solved by adding these two features, specially the ones related to the built in multiplayer…