pub trait ITextAssetMethods: ITextAsset {
// Provided methods
fn get_bytes(self) -> Array<u8> { ... }
fn get_preview_bytes(self, max_byte_count: impl Into<i32>) -> Array<u8> { ... }
fn get_text(self) -> Il2CppString { ... }
fn to_string(self) -> Il2CppString { ... }
fn ctor(self) { ... }
fn ctor_2(self, text: impl Into<Il2CppString>) { ... }
fn ctor_3(
self,
options: impl Into<TextAsset_CreateOptions>,
text: impl Into<Il2CppString>,
) { ... }
fn get_preview(self, max_chars: impl Into<i32>) -> Il2CppString { ... }
}Provided Methods§
Sourcefn get_preview_bytes(self, max_byte_count: impl Into<i32>) -> Array<u8>
fn get_preview_bytes(self, max_byte_count: impl Into<i32>) -> Array<u8>
GetPreviewBytes(i32) overload
Sourcefn get_text(self) -> Il2CppString
fn get_text(self) -> Il2CppString
get_text() overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn ctor_2(self, text: impl Into<Il2CppString>)
fn ctor_2(self, text: impl Into<Il2CppString>)
.ctor(::unity::Il2CppString) overload
Sourcefn ctor_3(
self,
options: impl Into<TextAsset_CreateOptions>,
text: impl Into<Il2CppString>,
)
fn ctor_3( self, options: impl Into<TextAsset_CreateOptions>, text: impl Into<Il2CppString>, )
.ctor(crate::unity_engine::textasset::TextAsset_CreateOptions, ::unity::Il2CppString) overload
Sourcefn get_preview(self, max_chars: impl Into<i32>) -> Il2CppString
fn get_preview(self, max_chars: impl Into<i32>) -> Il2CppString
GetPreview(i32) 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: ITextAsset> ITextAssetMethods for __T
Available on crate feature
unity_engine-textasset only.