コード例 #1
0
 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
 }
コード例 #2
0
 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);
     }
 }