Hi Creators,
Since launching Assistant last December, we’ve been expanding its capabilities, and improving its performance. We’re committed to making it a useful resource in Studio with you in the driver’s seat, designed to accelerate your productivity and enhance your overall experience.
You should feel in control of what Assistant is doing in your game at all times, and be adjustable if it has made an error. With this in mind, you can now review the changes that it makes to scripts before they’re applied, undo/redo changes that Assistant makes with the standard cmd+z /cmd+shift+z hotkeys, and edit previous prompts.
Additionally, Assistant now has a script debugging capability! It’ll run a root cause analysis and attempt to identify problem areas with your code, provide recommended changes or point you in the right direction of why code may be failing.
Script Insertion & Iteration with review
Now, when you ask Assistant to tweak your scripts, you can preview all the changes before they’re applied. This gives you complete control and transparency over how Assistant modifies your code, ensuring your vision stays intact. Assistant can also modify multiple scripts at once.
AI suggests, you review. We want to make sure that you have full control and ownership over AI-generated scripts. The generated scripts will be presented as a script diff - green for addition, red for deletion - making it much easier to see the exact changes Assistant is making.
Meanwhile, you will be presented with the choice to either:- Approve: Upon approval, the script updates are integrated into the project’s Explorer tree, making it a part of the place and accessible for further use and modification.
- Cancel: If canceled, the script will be discarded and excluded from the project. This process ensures that you have the final say in what content is included in your places, preventing unwanted AI-generated content from being incorporated.
If a prompt results in changes to multiple scripts, Assistant will guide you through the changes via chat output and generate a separate diff tab for each updated script. This allows for independent review of the specific modifications made to each script, giving you the flexibility to accept or cancel each change individually.
Here is a demo of Script iteration using AI.
In this scenario, the creator asks Assistant to change the colors of the tree every second. After seeing the result, they realized fall colors would be nicer and ask Assistant to modify the code. Assistant proposes a changes in the form of a diff, which the creator reviews and accepts.
Flexible Undo/Redo
Writing code is iterative, so is AI coding. We want to make sure all your changes are undoable and redoable. You can now undo/redo the changes in Assistant with the standard hotkeys (cmd+z /cmd+shift+z ).
Please note that there are some limitations with the current undo/redo. We will make it more intuitive in future updates.
- To undo/redo script changes, the script must be open.
- If you reject Assistant’s changes during the insertion/iteration process, you won’t be able to get these changes back with undo (Cmd+Z). You can prompt Assistant again to create similar changes, but they may be slightly different.
- Assistant’s changes are included and syncing in script history in Places with Team Create enabled.
- To view a script’s history: right-click the script in Explorer, select View Script History, locate the desired version, and click “open all scripts from batch”. This opens the earlier version in read-only mode, allowing you to copy content.
Editing Previous Prompts
If you made a mistake or want to tweak your Assistant prompt, you can now click the prompt in the Assistant window to make any adjustments or corrections. When you click ‘Submit’, Assistant will automatically generate a new response based on the adjusted prompt.
Debugging
Assistant can now run root cause analyses to understand why a script is erroring. In the Output log, right click on the error you’d like Assistant to analyze, and select ‘Ask Assistant’. Assistant will provide an explanation as to why it believes the error has occurred, and recommend how to resolve the issue.
You can ask Assistant to implement its recommended changes:
Coming soon
We’re excited to hear what you think, and would love your thoughts on which improvements are the most helpful for you. In the coming months, we also plan on releasing:
- Summon Assistant from Script Editor: You will be able to select a snippet of code in Script editor and ask Assistant to edit, explain, or take any action you want for that specific selection of code.
- Assistant Analytics: We also plan to test an analytics capability in Creator Hub, for Assistant to help you cut through the noise to highlight the most important insights and actions to grow your game.
We know there’s room to improve – we’d love your feedback on these changes and any other capabilities you believe should be added to Assistant to make it even more helpful. Happy creating!