pub struct DependencyAnalyzer { /* private fields */ }Expand description
Dependency analyzer for Unity assets
This struct provides methods for analyzing dependencies and relationships between Unity objects within and across assets.
Implementations§
Source§impl DependencyAnalyzer
impl DependencyAnalyzer
Sourcepub fn analyze_dependencies(
&mut self,
objects: &[&ObjectInfo],
) -> Result<DependencyInfo>
pub fn analyze_dependencies( &mut self, objects: &[&ObjectInfo], ) -> Result<DependencyInfo>
Analyze dependencies for a set of objects
Note: this legacy API is a placeholder and returns no dependencies.
Use analyze_dependencies_in_asset for real TypeTree-based scanning.
Sourcepub fn analyze_dependencies_in_asset(
&mut self,
asset: &SerializedFile,
objects: &[&ObjectInfo],
) -> Result<DependencyInfo>
pub fn analyze_dependencies_in_asset( &mut self, asset: &SerializedFile, objects: &[&ObjectInfo], ) -> Result<DependencyInfo>
Analyze dependencies for a set of objects within a specific asset.
This parses object data with TypeTree (when available) and scans for PPtr references
(fileID/pathID pairs) to build a dependency graph.
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear internal caches
Sourcepub fn get_cached_dependencies(&self, object_id: i64) -> Option<&Vec<i64>>
pub fn get_cached_dependencies(&self, object_id: i64) -> Option<&Vec<i64>>
Get cached dependencies for an object
Sourcepub fn get_cached_dependencies_in_asset(
&self,
asset: &SerializedFile,
object_id: i64,
) -> Option<(Vec<i64>, Vec<(i32, i64)>)>
pub fn get_cached_dependencies_in_asset( &self, asset: &SerializedFile, object_id: i64, ) -> Option<(Vec<i64>, Vec<(i32, i64)>)>
Get cached TypeTree-based dependencies for an object within an asset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DependencyAnalyzer
impl RefUnwindSafe for DependencyAnalyzer
impl Send for DependencyAnalyzer
impl Sync for DependencyAnalyzer
impl Unpin for DependencyAnalyzer
impl UnwindSafe for DependencyAnalyzer
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