Skip to content

Commit

Permalink
docs: Allow identifying assets in code from their path
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyCrush committed Dec 18, 2024
1 parent 8884c6a commit b327d73
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/0-5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,23 @@ taken from the UI sample available in the engine showcasing the text rendering i

**Note:** Currently only the ASCII charset is supported, UTF-8 support will be worked on in a future release.

Allow identifying assets in code from their path :dim:`(@GalaxyCrush)`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Assets could only be identified by their UUID, which could sometimes be confusing when working with multiple assets.
Now, they are able to be identified by their path, thus allowing for better compression when developing projects with CUBOS.
E.g., you can now do:

.. code-block:: cpp
Asset<Scene> SceneAsset = AnyAsset("/path/to/asset");
instead of:

.. code-block:: cpp
Asset<Scene> SceneAsset = AnyAsset("uuid");
On the Core
-----------

Expand Down

0 comments on commit b327d73

Please sign in to comment.