The "Include Frame" function is an excellent feature that significantly simplifies development and provides capabilities such as creating a GUI for gameplay, a pause interface, a single frame with all useful extensions, and many other interesting solutions! All of this is designed so that developers don’t have to insert the same objects and events into every frame, as now one frame can be included in another!
Will the user experience with the "Include Frame" function be improved in Fusion build 296? Currently, I am experiencing issues when trying to interact with objects from the parent frame in the child frame or vice versa.
No, don’t get me wrong, all events work with object shortcuts, but there are a number of problems that turn development into a chore or greatly hinder it.
Note 1: The problems are discussed using Frame 1 and Frame 2 as examples, where Frame 2 is included in Frame 1. Frame 2 contains various objects that are used in Frame 1 and all in other frames in the project.
Note 2: Most of the issues listed below are related to shortcuts rather than the "Include Frame" function itself.
Note 3: The problems arise because Fusion is implemented in such a way that each frame has its own object library, while it should be global for the entire project so that objects are accessible everywhere.
1. Creating object shortcuts
There is no direct way to create object shortcuts in the frame event editor by importing, as in global events or behaviors.
Please login to see this attachment.
Currently, to create an object shortcut in another frame, the developer has to:
- Create any event in Frame 2 with the object for which a shortcut needs to be created in Frame 1;
- Cut the event line from Frame 2;
- Paste it into Frame 1;
- Delete it.
Please login to see this attachment.
Note 1: Creating a "Never" event in Frame 1 with the action "Create Object" and selecting an object from Frame 2 half defeats the purpose of the "Include Frame" function. I don’t consider this a solution! Moreover, if such an event is deleted, all events with this object will be removed.
Please login to see this attachment.
Note 2: Temporarily inserting an object from Frame 2 into Frame 1 is also not a solution, as it involves unnecessary steps for the developer. Additionally, events with this object will be permanently deleted when the object is removed from the frame. The developer has to cut all events from the frame, delete the object, and then paste the events back, which is also unnecessary work.
Please login to see this attachment.
How to solve the problem: Add a column in the event editor with an icon for importing objects from other frames, just like in global events.
Please login to see this attachment.
2. The bug icon
In some cases, when trying to create a shortcut for an object, a bug icon appears instead of the object icon. You have to ensure that both Frame 1 and Frame 2 tabs are open for the object icon to display correctly.
Please login to see this attachment.
3. Icons for shortcuts can disappear
If you clone a frame, the icons of shortcuts disappear. Copying and pasting the frame has the same effect.
Please login to see this attachment.
How to solve problems 2 and 3: Ensure that icons are loaded directly, as in the global event editor. At the very least, this could be tied to the "Base Frame" parameter.
4. Fusion confuses extensions
If you create events in Frame 1 with shortcuts for extensions located in Frame 2, under certain circumstances, the shortcuts for extensions may be interpreted as shortcuts for other extensions.
Please login to see this attachment.
I tried to reproduce the bug in an MFA created from scratch, but I couldn’t, so in addition to a simple example, I’m providing a more complex one. I’ve tried to annotate inside the MFA (in comments in Event Editor) how to reproduce the issue.
I'll leave mfa examples in the next post!
Perhaps the issue only occurs in complex projects; I haven’t yet found the root cause.
5. Renaming objects does not update shortcuts
On one hand, I understand why this happens, but on the other hand, I would like a solution to this problem.
6. Variable names
When working with object shortcuts, we don’t see the names of alterable values, string variables, or flags, which complicates development.
Please login to see this attachment.
How to solve the problem: Ensure that variable names are loaded directly, as in the global event editor. At the very least, this could be tied to the "Base Frame" parameter.
---------------
If any of the points are unclear, I can visualize the problem by providing screenshots or recording a video, or try to explain it better — just let me know!