mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 04:51:47 +00:00
Expose parent from RojoTree instances
This commit is contained in:
parent
923f661428
commit
f0eb955628
1 changed files with 4 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ impl<'a> InstanceWithMeta<'a> {
|
||||||
self.instance.get_id()
|
self.instance.get_id()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn parent(&self) -> Option<RbxId> {
|
||||||
|
self.instance.get_parent_id()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn name(&self) -> &'a str {
|
pub fn name(&self) -> &'a str {
|
||||||
&self.instance.name
|
&self.instance.name
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue