file--->Build Settings 然后再点左下角的Player Settings 然后在左边找到Player,在右边找到Scripting Define Symbols,里面加下宏,不同的宏用逗号隔开