Skip to main content

ITextAssetMethods

Trait ITextAssetMethods 

Source
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§

Source

fn get_bytes(self) -> Array<u8>

get_bytes() overload

Source

fn get_preview_bytes(self, max_byte_count: impl Into<i32>) -> Array<u8>

GetPreviewBytes(i32) overload

Source

fn get_text(self) -> Il2CppString

get_text() overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, text: impl Into<Il2CppString>)

.ctor(::unity::Il2CppString) overload

Source

fn ctor_3( self, options: impl Into<TextAsset_CreateOptions>, text: impl Into<Il2CppString>, )

.ctor(crate::unity_engine::textasset::TextAsset_CreateOptions, ::unity::Il2CppString) overload

Source

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§

Source§

impl<__T: ITextAsset> ITextAssetMethods for __T

Available on crate feature unity_engine-textasset only.