pub struct TextAsset {
pub m_Name: String,
pub m_Script: String,
pub m_PathName: Option<String>,
}
Expand description
TextAsset is a class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: Represents a raw text or binary file asset. You can use raw text files in your project as assets and get their contents through
this class. For more information, see text.You can access the file as a raw byte array to access data from binary files. For more
information on how to access data from binary files, see bytes and GetData.For more information about importing text or binary files into your project as Text Assets,
see Text Asset.
Fields§
§m_Name: String
The name of the object.
m_Script: String
§m_PathName: Option<String>
String: (3.4.0 - 2017.1.0b1)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextAsset
impl<'de> Deserialize<'de> for TextAsset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextAsset
impl RefUnwindSafe for TextAsset
impl Send for TextAsset
impl Sync for TextAsset
impl Unpin for TextAsset
impl UnwindSafe for TextAsset
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