mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 12:45:05 +00:00
Expose parent from RojoTree instances
This commit is contained in:
@@ -224,6 +224,10 @@ impl<'a> InstanceWithMeta<'a> {
|
||||
self.instance.get_id()
|
||||
}
|
||||
|
||||
pub fn parent(&self) -> Option<RbxId> {
|
||||
self.instance.get_parent_id()
|
||||
}
|
||||
|
||||
pub fn name(&self) -> &'a str {
|
||||
&self.instance.name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user