static ep_editor_ext_wp_handler() { SceneView.onSceneGUIDelegate -= OnSceneGUI; SceneView.onSceneGUIDelegate += OnSceneGUI; //LOAD ASSET PACK wp_blocks = AssetDatabase.LoadAssetAtPath <wp_point_asset>(WP_CON_EDITOR.CON_ASSET_SET_PATH); new_block_to_create = null; SelectedBlock = -1; was_one_time_remove = false; }
public static void set_wp_types_asset_path(string _s) { wp_point_asset wp_blocks = null; wp_blocks = AssetDatabase.LoadAssetAtPath <wp_point_asset>(_s); if (wp_blocks == null) { Debug.LogError("ERROR - PLEASE SET A VALID ASSET PATH FOR THE WP_TYPES.asset"); CON_ASSET_SET_PATH = ""; } CON_ASSET_SET_PATH = _s; // Debug.Log("WP_ASSET - Path succ set"); }