Files
sbox-public/game/addons/tools/Code/Scene/Mesh/IMeshElement.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

13 lines
369 B
C#

namespace Editor.MeshEditor;
/// <summary>
/// A mesh element can be a vertex, edge or face belonging to a mesh
/// </summary>
public interface IMeshElement : IValid
{
public MeshComponent Component { get; }
public GameObject GameObject => Component.IsValid() ? Component.GameObject : null;
public Scene Scene => Component.IsValid() ? Component.Scene : null;
}