mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Add getter for RenderGraph Node uuid (#1499)
`RenderGraph` errors only give the `Uuid` of the node. So for my graphviz dot based visualization of the `RenderGraph` I really wanted to show it to the user. I think it makes sense to have it accessible for at least debugging purposes.
This commit is contained in:
parent
13b602ee3f
commit
72f2a7b581
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ impl NodeId {
|
|||
pub fn new() -> Self {
|
||||
NodeId(Uuid::new_v4())
|
||||
}
|
||||
|
||||
pub fn uuid(&self) -> &Uuid {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
pub trait Node: Downcast + Send + Sync + 'static {
|
||||
|
|
Loading…
Reference in a new issue