pub struct SerializedProperty {
pub m_Attributes: Vec<String>,
pub m_DefTexture: SerializedTextureProperty,
pub m_Description: String,
pub m_Flags: u32,
pub m_Name: String,
pub m_Type: i32,
pub m_DefValue_0_: Option<f32>,
pub m_DefValue_1_: Option<f32>,
pub m_DefValue_2_: Option<f32>,
pub m_DefValue_3_: Option<f32>,
}Expand description
SerializedProperty is a sub class of the Unity engine since version 5.5.0f3. Exert from Unity’s scripting documentation: SerializedProperty and SerializedObject are classes for editing properties on objects in a completely generic way that automatically handles undo, multi-object editing and Prefab overrides. SerializedProperty is primarily used to read or change the value of a property. It can also iterate through the properties of an object using Next. See Also: SerializedObject class, Editor class.
Fields§
§m_Attributes: Vec<String>§m_DefTexture: SerializedTextureProperty§m_Description: String§m_Flags: u32§m_Name: StringName of the property. (Read Only)
m_Type: i32Type name of the property. (Read Only)
m_DefValue_0_: Option<f32>f32: (5.5.0f3 - 2022.3.2f1)
m_DefValue_1_: Option<f32>f32: (5.5.0f3 - 2022.3.2f1)
m_DefValue_2_: Option<f32>f32: (5.5.0f3 - 2022.3.2f1)
m_DefValue_3_: Option<f32>f32: (5.5.0f3 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for SerializedProperty
impl Debug for SerializedProperty
Source§impl<'de> Deserialize<'de> for SerializedProperty
impl<'de> Deserialize<'de> for SerializedProperty
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerializedProperty, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerializedProperty, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SerializedProperty
impl Serialize for SerializedProperty
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SerializedProperty
impl RefUnwindSafe for SerializedProperty
impl Send for SerializedProperty
impl Sync for SerializedProperty
impl Unpin for SerializedProperty
impl UnsafeUnpin for SerializedProperty
impl UnwindSafe for SerializedProperty
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