-define:DEBUG
using UnityEngine;
using System.Collections;
public class smcsTest : MonoBehaviour {
// Use this for initialization
void Start ()
{
#if MACROS_1
Debug.Log("define MACROS_1");
#else
Debug.Log("No define MACROS_1");
#endif
#if DEBUG
Debug.Log("define DEBUG");
#else
Debug.Log("No define DEBUG");
#endif
}
}
运行