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§
Sourcefn get_instance_id(self) -> i32
fn get_instance_id(self) -> i32
GetInstanceID() overload
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn equals(self, other: impl Into<Object>) -> bool
fn equals(self, other: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcefn ensure_running_on_main_thread(self)
fn ensure_running_on_main_thread(self)
EnsureRunningOnMainThread() overload
Sourcefn get_cached_ptr(self) -> IntPtr
fn get_cached_ptr(self) -> IntPtr
GetCachedPtr() overload
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_name() overload
Sourcefn set_name(self, value: impl Into<Il2CppString>)
fn set_name(self, value: impl Into<Il2CppString>)
set_name(::unity::Il2CppString) overload
Sourcefn get_hide_flags(self) -> HideFlags
fn get_hide_flags(self) -> HideFlags
get_hideFlags() overload
Sourcefn set_hide_flags(self, value: impl Into<HideFlags>)
fn set_hide_flags(self, value: impl Into<HideFlags>)
set_hideFlags(crate::unity_engine::hideflags::HideFlags) overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() 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§
impl<__T: IObject_2> IObject_2Methods for __T
Available on crate feature
unity_engine-object_2 only.