String.Format用法
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Format : MonoBehaviour {
string[] MM = new string[] {"字段1","字段2","字段3" };
// Use this for initialization
void Start () {
Debug.Log(string.Format("{0}{1}{2}", MM ));
}
}
using System.Collections.Generic;
using UnityEngine;
public class Format : MonoBehaviour {
string[] MM = new string[] {"字段1","字段2","字段3" };
// Use this for initialization
void Start () {
Debug.Log(string.Format("{0}{1}{2}", MM ));
}
}

浙公网安备 33010602011771号