pub struct RelationshipAnalyzer { /* private fields */ }Expand description
Relationship analyzer for Unity assets
This struct provides methods for analyzing relationships between GameObjects, Components, and other Unity objects.
Implementations§
Source§impl RelationshipAnalyzer
impl RelationshipAnalyzer
Sourcepub fn analyze_relationships(
&mut self,
objects: &[&ObjectInfo],
) -> Result<AssetRelationships>
pub fn analyze_relationships( &mut self, objects: &[&ObjectInfo], ) -> Result<AssetRelationships>
Analyze relationships for a set of objects
Sourcepub fn analyze_relationships_in_asset(
&mut self,
asset: &SerializedFile,
objects: &[&ObjectInfo],
) -> Result<AssetRelationships>
pub fn analyze_relationships_in_asset( &mut self, asset: &SerializedFile, objects: &[&ObjectInfo], ) -> Result<AssetRelationships>
Analyze relationships for a set of objects within a specific asset.
This method parses GameObject/Transform data via TypeTree (when available) to build:
- GameObject hierarchy (parent/children/depth)
- Component relationships (GameObject -> Component)
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear internal caches
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelationshipAnalyzer
impl RefUnwindSafe for RelationshipAnalyzer
impl Send for RelationshipAnalyzer
impl Sync for RelationshipAnalyzer
impl Unpin for RelationshipAnalyzer
impl UnwindSafe for RelationshipAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more