mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Better Transform component and edit gui
This commit is contained in:
@@ -4,6 +4,8 @@ namespace GlitchyEngine.World
|
||||
{
|
||||
internal Entity _entity;
|
||||
|
||||
protected TransformComponent* transform => GetComponent<TransformComponent>();
|
||||
|
||||
public T* AddComponent<T>(T value = T()) where T: struct, new
|
||||
{
|
||||
return _entity.AddComponent<T>(value);
|
||||
|
||||
Reference in New Issue
Block a user