public static void SetUpcdma() { #if UNITY_EDITOR if (cdma == null) { cdma = (CustomDrawModeAsset)AssetDatabase.LoadAssetAtPath("Assets/SRP0902_SceneViewDrawMode/CustomDrawModeAsset.asset", typeof(CustomDrawModeAsset)); } if (cdma == null) { Debug.LogError("CustomDrawModeAssetObject is null"); } #endif }
public static bool SetUpObject() { if (cdma == null) { cdma = (CustomDrawModeAsset)AssetDatabase.LoadAssetAtPath("Assets/DrawMode/CustomDrawModeAsset.asset", typeof(CustomDrawModeAsset)); } if (cdma == null) { return(false); } else { return(true); } }