Visual scripting

Visual scripting in Unity empowers creators to develop gameplay mechanics or interaction logic with a visual, graph-based system, instead of writing traditional lines of code.

观看教程

Want to get started with visual scripting as quickly as possible? This quick-start tutorial introduces the basics of visual scripting to help you make your own games with node-based logic.

在 Unity 中以可视化方式编写脚本(由 Bolt 提供支持)

为非程序员设计的脚本创作工具

Visual scripting in Unity helps team members create scripting logic with visual, drag-and-drop graphs instead of hand-writing code. It also enables more seamless collaboration between programmers, artists, and designers for faster prototyping and iteration.

为设计师和美术师设计的脚本创作工具

对于想要在 Unity 中测试想法、进行更改或保持对作品更直接的控制的设计师和美术师来说,这是一个不错的选择。非程序员也可以使用由技术能力更高的团队成员创建的节点图。

提高开发者进行原型设计和测试的速度

提高程序员的工作效率

Using a visual scripting system can increase the speed of prototyping and testing for developers, avoiding wasted effort on handwritten code for ideas that might not be viable. Visual scripting is also a great way to make existing scripts more accessible or create tools for use by other members of a development team.

主要优点

流图

流图是在项目中创建交互的主要工具。通过使用基于节点的操作和值,这些图让你能够按指定的任何顺序执行逻辑,不管是在每一帧执行还是在事件发生时执行。

状态图

状态图允许你创建独立的行为,这些行为告诉对象当它们处于特定状态时要执行什么操作。它们适用于高级逻辑(例如 AI 行为、场景或关卡结构)或场景中需要在状态之间转换行为的任何方面。

实时编辑

Make changes to graphs in Play Mode to see visual scripting updates in real-time. This offers a much faster way to iterate and test ideas without needing to recompile project changes.

预测性调试和分析

Predict and indicate nodes that will crash before you even press play, and analyze your graphs to anticipate missing components or null references. If an error occurs at runtime, visual scripting will pinpoint its source by highlighting it in the graph.

易于使用的设计

Visual scripting is designed to be accessible for less technical creators through user-friendly naming conventions, commenting and grouping features that keep graphs simple to read, and the Fuzzy Finder, which makes it easy to search for what you need.

代码库兼容性

Use a method, field, property, or event from Unity, any third-party plugin, or even custom scripts within your graphs. Visual scripting directly accesses your codebase via reflection and is always up to date.

常见问题解答

什么是可视化脚本?

Visual scripting is a graphical way to manipulate objects and behaviors in Unity without hand-writing code. The logic is built by connecting visual nodes together, empowering artists, designers, and programmers to create gameplay and interactive systems in a simple way.

How can I access visual scripting?

From the 2021.1 release and onward, visual scripting is included in the Package Manager, and shipped with the Unity Editor.

For 2019 LTS and 2020 LTS releases, Bolt Visual Scripting can be found on the Unity Asset Store to download for free.

什么是 Unity Asset Store?

The Unity Asset Store is a marketplace with thousands of free or affordably priced assets that save time and effort for Unity creators. It is a powerful resource for successful Unity developers that offers over 60,000 packs featuring tools and Editor extensions, 3D and 2D art, cinematic quality music and sound effects, and more.

What versions of Unity does Bolt Visual Scripting support?

Bolt Visual Scripting will continue to support projects on Unity 2018, 2019, and 2020 LTS versions.

可视化脚本在 Unity 的发展前景如何?

From the 2021.1 release and onwards, Unity will provide visual scripting as a core feature, included with the Unity Editor by default.

What about DOTS-based visual scripting?

Unity is in the process of evaluating the future of visual scripting in consideration of Bolt, Bolt 2, and our DOTS-based visual scripting solution. Our goal is to create a single, cohesive solution that does not result in broken features or fractured communities, and that meets user expectations around production-readiness. For more information on the evolution of visual scripting, please join us in the forums.

我们使用 Cookie 来确保为您提供网站的最佳体验。有关更多信息,请访问我们的 Cookie 政策页面

明白了