cg小白兔 发表于 2024-5-17 15:14:23

【更新】Speech Bubble Manager 1.5.0语音气泡管理器

















Speech Bubble Manager is a system that creates and manages speech bubbles through one line of code.

Features:
• Speech bubbles through one line of code
• 2D and 3D
• Adapts size to fit text
• Object pooling
• 4 types of bubbles
• TextMesh Pro integrations (optional)

It works in 2D and 3D. It will adapt the size of the speech bubble to fit the text it needs to contain. It uses object pooling to keep down garbage generation. It comes with a set of four types of speech bubbles and more can be created without too much hassle.

The system is useful not only for talking characters but also as a debugging tool; instead of printing to the debug console, let the character tell you its debugging message in person! This is especially useful for debugging AI as the character can actually talk you through his or her thinking. There is a Behaviour Designer integration package included so that speech bubbles can be easily created through an action.

As mentioned there are four types of speech bubbles included. Two of them are using 9-sliced sprites (normal and serious) while two of them are scaled to fit their content (angry and thought). The 9-sliced work for all sizes of content, scaled images work best if the height and width are somewhat similar as they can look a bit strangely stretched otherwise. To keep the ratio as close as possible introduce a linebreak here and there for the very best visuals when using angry and thought bubbles.


语音气泡管理器是一个通过一行代码创建和管理语音气泡的系统。

特征:
• 通过一行代码实现语音气泡
• 2D 和 3D
• 调整大小以适合文本
• 对象池
• 4种气泡
• TextMesh Pro 集成(可选)


它适用于 2D 和 3D。 它将调整对话气泡的大小以适应其需要包含的文本。 它使用对象池来减少垃圾生成。 它配备了一组四种类型的对话气泡,并且可以轻松创建更多类型的对话气泡。

该系统不仅对于说话的角色很有用,而且还可以作为调试工具; 让角色亲自告诉您其调试消息,而不是打印到调试控制台! 这对于调试 AI 特别有用,因为角色实际上可以向您讲述他或她的想法。 包含一个行为设计器集成包,以便可以通过操作轻松创建对话气泡。

如前所述,其中包含四种类型的气泡。 其中两个使用 9 切片精灵(正常和严肃),而其中两个则缩放以适应其内容(愤怒和思考)。 9 切片适用于所有尺寸的内容,如果高度和宽度有些相似,则缩放图像效果最佳,否则它们可能看起来有点奇怪地拉伸。 为了保持比例尽可能接近,在使用愤怒和思考气泡时,到处引入换行符以获得最佳视觉效果。





页: [1]
查看完整版本: 【更新】Speech Bubble Manager 1.5.0语音气泡管理器