pub struct Transform { /* private fields */ }Available on crate feature
unity only.Expand description
A Transform is a base class for all entities used in a Unity scene. All
classes of interest useful for an auto splitter can be found starting from
the addresses of the root Transforms linked in each scene.
Implementations§
Source§impl Transform
impl Transform
Sourcepub fn get_name<const N: usize>(
&self,
process: &Process,
scene_manager: &SceneManager,
) -> Result<ArrayCString<N>, Error>
pub fn get_name<const N: usize>( &self, process: &Process, scene_manager: &SceneManager, ) -> Result<ArrayCString<N>, Error>
Tries to return the name of the current Transform.
Sourcepub fn classes<'a>(
&'a self,
process: &'a Process,
scene_manager: &'a SceneManager,
) -> Result<impl Iterator<Item = Address> + 'a, Error>
pub fn classes<'a>( &'a self, process: &'a Process, scene_manager: &'a SceneManager, ) -> Result<impl Iterator<Item = Address> + 'a, Error>
Iterates over the classes referred to in the current Transform.
Sourcepub fn get_class(
&self,
process: &Process,
scene_manager: &SceneManager,
name: &str,
) -> Result<Address, Error>
pub fn get_class( &self, process: &Process, scene_manager: &SceneManager, name: &str, ) -> Result<Address, Error>
Tries to find the base address of a class in the current GameObject.
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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