static ScriptView() { var styleSheetPath = PathUtils.AbsoluteToAssetPath(PathUtils.Combine(PackagePath.EditorResourcesPath, "ScriptEditor.uss")); StyleSheet = AssetDatabase.LoadAssetAtPath <StyleSheet>(styleSheetPath); }
private static void CreateResourceCopy(string resourcePath, string copyName) { var assetPath = PathUtils.AbsoluteToAssetPath(PathUtils.Combine(PackagePath.RuntimeResourcesPath, $"{resourcePath}.prefab")); CreateAssetCopy(assetPath, copyName); }
private static void CreatePrefabCopy(string prefabPath, string copyName) { var assetPath = PathUtils.AbsoluteToAssetPath(PathUtils.Combine(PackagePath.PrefabsPath, $"{prefabPath}.prefab")); CreateAssetCopy(assetPath, copyName); }
private static string PathToAddress(string path) => PathUtils.Combine(ResourceProviderConfiguration.AddressableId, path);