-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
471e8fb
commit 1efa594
Showing
32 changed files
with
87 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Depra.Assets | ||
|
||
![License](https://img.shields.io/github/license/Depra-Inc/Asset.Unity?style=flat-round) | ||
![Last Commit](https://img.shields.io/github/last-commit/Depra-Inc/Asset.Unity?style=flat-round) | ||
![Code Size](https://img.shields.io/github/languages/code-size/Depra-Inc/Asset.Unity?style=flat-round) | ||
![License](https://img.shields.io/github/license/Depra-Inc/Assets.Unity?style=flat-round) | ||
![Last Commit](https://img.shields.io/github/last-commit/Depra-Inc/Assets.Unity?style=flat-round) | ||
![Code Size](https://img.shields.io/github/languages/code-size/Depra-Inc/Assets.Unity?style=flat-round) | ||
|
||
<div> | ||
<strong><a href="README.md">English</a> | <a href="README.RU.md">Русский</a></strong> | ||
|
@@ -64,15 +64,15 @@ | |
1. Откройте окно **Unity Package Manager**. | ||
2. Нажмите на кнопку **+** в правом верхнем углу окна. | ||
3. Выберите **Add package from git URL...**. | ||
4. Введите [ссылку на репозиторий](https://github.com/Depra-Inc/Asset.Unity.git) | ||
4. Введите [ссылку на репозиторий](https://github.com/Depra-Inc/Assets.Unity.git) | ||
5. Нажмите **Add**. | ||
|
||
### ⚙️ Через **UPM** используя `manifest.json`: | ||
|
||
Добавьте в `Packages/manifest.json` в раздел `dependencies` следующую строку: | ||
|
||
``` | ||
"com.depra.assets.unity": "https://github.com/Depra-Inc/Asset.Unity.git" | ||
"com.depra.assets.unity": "https://github.com/Depra-Inc/Assets.Unity.git" | ||
``` | ||
|
||
### 🛒 Через Unity Asset Store: | ||
|
@@ -166,8 +166,8 @@ preloadedAsset.Unload(); | |
## 🤝 Сотрудничество | ||
|
||
Я рад приветствовать запросы на добавление новых функций и сообщения об ошибках в | ||
разделе [issues](https://github.com/Depra-Inc/Asset.Unity/issues) и также | ||
принимать [pull requests](https://github.com/Depra-Inc/Asset.Unity/pulls). | ||
разделе [issues](https://github.com/Depra-Inc/Assets.Unity/issues) и также | ||
принимать [pull requests](https://github.com/Depra-Inc/Assets.Unity/pulls). | ||
|
||
## 🫂 Поддержка | ||
|
||
|
@@ -179,7 +179,7 @@ preloadedAsset.Unload(); | |
## 🔐 Лицензия | ||
|
||
Этот проект распространяется под лицензией | ||
**[Apache-2.0](https://github.com/Depra-Inc/Asset.Unity/blob/main/LICENSE.md)** | ||
**[Apache-2.0](https://github.com/Depra-Inc/Assets.Unity/blob/main/LICENSE.md)** | ||
|
||
Copyright (c) 2023 Николай Мельников | ||
[[email protected]](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Depra.Asset | ||
# Depra.Assets | ||
|
||
![License](https://img.shields.io/github/license/Depra-Inc/Asset.Unity?style=flat-round) | ||
![Last Commit](https://img.shields.io/github/last-commit/Depra-Inc/Asset.Unity?style=flat-round) | ||
![Code Size](https://img.shields.io/github/languages/code-size/Depra-Inc/Asset.Unity?style=flat-round) | ||
![License](https://img.shields.io/github/license/Depra-Inc/Assets.Unity?style=flat-round) | ||
![Last Commit](https://img.shields.io/github/last-commit/Depra-Inc/Assets.Unity?style=flat-round) | ||
![Code Size](https://img.shields.io/github/languages/code-size/Depra-Inc/Assets.Unity?style=flat-round) | ||
|
||
<div> | ||
<strong><a href="README.md">English</a> | <a href="README.RU.md">Русский</a></strong> | ||
|
@@ -64,15 +64,15 @@ These features make the library even more powerful and convenient for your tasks | |
1. Open the **Unity Package Manager** window. | ||
2. Click the **+** button in the upper right corner of the window. | ||
3. Select **Add package from git URL...**. | ||
4. Enter the [repository link](https://github.com/Depra-Inc/Asset.Unity.git). | ||
4. Enter the [repository link](https://github.com/Depra-Inc/Assets.Unity.git). | ||
5. Click **Add**. | ||
|
||
### ⚙️ Using **UPM** via **manifest.json**: | ||
|
||
Add the following line to `Packages/manifest.json` in the `dependencies` section: | ||
|
||
``` | ||
"com.depra.asset.unity": "https://github.com/Depra-Inc/Asset.Unity.git" | ||
"com.depra.assets.unity": "https://github.com/Depra-Inc/Assets.Unity.git" | ||
``` | ||
|
||
### 🛒 Using Unity Asset Store: | ||
|
@@ -160,14 +160,14 @@ preloadedAsset.Unload(); | |
|
||
## 🖇 Dependencies | ||
|
||
- [Depra.Asset](https://github.com/Depra-Inc/Asset.git) - the base library for working with assets (provided | ||
- [Depra.Asset](https://github.com/Depra-Inc/Assets.git) - the base library for working with assets (provided | ||
with this **UPM** package). | ||
|
||
## 🤝 Collaboration | ||
|
||
I welcome feature requests and bug reports in | ||
the [issues section](https://github.com/Depra-Inc/Asset.Unity/issues), and I also | ||
accept [pull requests](https://github.com/Depra-Inc/Asset.Unity/pulls). | ||
the [issues section](https://github.com/Depra-Inc/Assets.Unity/issues), and I also | ||
accept [pull requests](https://github.com/Depra-Inc/Assets.Unity/pulls). | ||
|
||
## 🫂 Support | ||
|
||
|
@@ -178,7 +178,7 @@ my [portfolio](https://github.com/Depra-Inc) and [contact me](mailto:g0dzZz1lla@ | |
## 🔐 License | ||
|
||
This project is distributed under the | ||
**[Apache-2.0 license](https://github.com/Depra-Inc/Asset.Unity/blob/main/LICENSE.md)** | ||
**[Apache-2.0 license](https://github.com/Depra-Inc/Assets.Unity/blob/main/LICENSE.md)** | ||
|
||
Copyright (c) 2023 Nikolay Melnikov | ||
[[email protected]](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// © 2023-2024 Nikolay Melnikov <[email protected]> | ||
|
||
using Depra.Asset.Editor.Extensions; | ||
using Depra.Asset.Files.Resource; | ||
using Depra.Assets.Editor.Extensions; | ||
using Depra.Assets.Files.Resource; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace Depra.Asset.Editor.Drawers | ||
namespace Depra.Assets.Editor.Drawers | ||
{ | ||
[CustomPropertyDrawer(typeof(ResourcesReference), true)] | ||
internal sealed class ResourcesReferenceDrawer : PropertyDrawer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
Runtime/Depra.Asset.Unity.asmdef → Runtime/Depra.Assets.Unity.asmdef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
// © 2023-2024 Nikolay Melnikov <[email protected]> | ||
|
||
using System.IO; | ||
using Depra.Asset.ValueObjects; | ||
using Depra.Assets.ValueObjects; | ||
|
||
namespace Depra.Asset.Files.Database | ||
namespace Depra.Assets.Files.Database | ||
{ | ||
public sealed record DatabaseAssetUri : IAssetUri | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
// © 2023-2024 Nikolay Melnikov <[email protected]> | ||
|
||
using System.Runtime.CompilerServices; | ||
using Depra.Asset.ValueObjects; | ||
using Depra.Assets.ValueObjects; | ||
using UnityEngine; | ||
using UnityEngine.Profiling; | ||
|
||
namespace Depra.Asset.Files | ||
namespace Depra.Assets.Files | ||
{ | ||
internal static class UnityFileSize | ||
public static class UnityFileSize | ||
{ | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static FileSize FromProfiler(Object asset) => new(Profiler.GetRuntimeMemorySizeLong(asset)); | ||
|
Oops, something went wrong.