From b327d738183a6bcc68e902b6ec2a152a897e5567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Wed, 18 Dec 2024 00:03:12 +0000 Subject: [PATCH] docs: Allow identifying assets in code from their path --- content/0-5.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/0-5.rst b/content/0-5.rst index c7c508a..87b61e8 100644 --- a/content/0-5.rst +++ b/content/0-5.rst @@ -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 SceneAsset = AnyAsset("/path/to/asset"); + +instead of: + +.. code-block:: cpp + + Asset SceneAsset = AnyAsset("uuid"); + On the Core -----------