Separated Assets to Resources (Engine assets) and Assets (Project specific)

+ AssetHierarchy: Exposed RootNode
+ ContentBrowserWindow: Fixed Empty Folder not being Leaf-Node
+ TreeNode: Added IsParentOf, IsChildOf and IsInSubtree.
    + Fixed InternalDeleteTreeAndChildren for null trees
This commit is contained in:
Simon Lübeß
2023-07-30 20:30:06 +02:00
parent 20dae92be7
commit c1a87ed946
85 changed files with 413 additions and 240 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ using GlitchyEngine;
using ImGui;
using GlitchyEngine.Math;
using System;
using GlitchyEngine.Content;
namespace Sandbox
{
class TextureViewer
@@ -22,7 +23,7 @@ namespace Sandbox
GraphicsContext _context ~ _.ReleaseRef();
Effect _effect ~ _.ReleaseRef();
AssetHandle<Effect> _effect;
float _zoom = 1.0f;
@@ -48,7 +49,7 @@ namespace Sandbox
private void InitEffect()
{
_effect = new Effect("content\\Shaders\\textureViewerShader.hlsl");
_effect = Content.LoadAsset("Shaders\\textureViewerShader.hlsl");
}
private void InitState()