pub struct Preset {
pub m_Name: String,
pub m_Properties: Vec<PropertyModification>,
pub m_TargetType: PresetType,
pub m_ExcludedProperties: Option<Vec<String>>,
}Expand description
Preset is a class of the Unity engine since version 2018.1.0b2. Exert from Unity’s scripting documentation: A Preset contains default values for an Object. The Preset class contains the type of the Object used to create it and a list of each serialized property/value pair of this Object. It can be used to store informations from any serializable Object in the Editor and apply them back to this Object or any other Object of the same type. Presets can also be saved as Assets using the .preset extension in order to.
Fields§
§m_Name: StringThe name of the object.
m_Properties: Vec<PropertyModification>§m_TargetType: PresetType§m_ExcludedProperties: Option<Vec<String>>List of properties to ignore when applying the Preset to an object.
Vec
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preset
impl<'de> Deserialize<'de> for Preset
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 Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnwindSafe for Preset
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