下面附上我视频中的两个代码大家可以根据自己需求进行修改 BubbleSlider using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; using UnityEngine.UI; [System.Serializable] public class BubbleText { public string text; public string textName; public bool isRight; } public class BubbleSlider : MonoBehaviour { private float lowHeight; // 滑块/上一个气泡的最低位置 private float spacing = 0f; // 气泡之间的间距 private int speakIndex; //当前对话的段落 public GameObject leftBubblePrefab; // 左气泡预设 public GameObject...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile