mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 06:35:39 +00:00
Expose parent from RojoTree instances
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user