Skip to main content

IObject_2Methods

Trait IObject_2Methods 

Source
pub trait IObject_2Methods: IObject_2 {
    // Provided methods
    fn get_instance_id(self) -> i32 { ... }
    fn get_hash_code(self) -> i32 { ... }
    fn equals(self, other: impl Into<Object>) -> bool { ... }
    fn ensure_running_on_main_thread(self) { ... }
    fn get_cached_ptr(self) -> IntPtr { ... }
    fn get_name(self) -> Il2CppString { ... }
    fn set_name(self, value: impl Into<Il2CppString>) { ... }
    fn get_hide_flags(self) -> HideFlags { ... }
    fn set_hide_flags(self, value: impl Into<HideFlags>) { ... }
    fn to_string(self) -> Il2CppString { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_instance_id(self) -> i32

GetInstanceID() overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn equals(self, other: impl Into<Object>) -> bool

Equals(crate::system::object::Object) overload

Source

fn ensure_running_on_main_thread(self)

EnsureRunningOnMainThread() overload

Source

fn get_cached_ptr(self) -> IntPtr

GetCachedPtr() overload

Source

fn get_name(self) -> Il2CppString

get_name() overload

Source

fn set_name(self, value: impl Into<Il2CppString>)

set_name(::unity::Il2CppString) overload

Source

fn get_hide_flags(self) -> HideFlags

get_hideFlags() overload

Source

fn set_hide_flags(self, value: impl Into<HideFlags>)

set_hideFlags(crate::unity_engine::hideflags::HideFlags) overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IObject_2> IObject_2Methods for __T

Available on crate feature unity_engine-object_2 only.