pub struct ConstraintSource {
pub sourceTransform: PPtr,
pub weight: f32,
}
Expand description
ConstraintSource is a sub class of the Unity engine since version 2018.1.0b2. Exert from Unity’s scripting documentation: Represents a source for the constraint.
Fields§
§sourceTransform: PPtr
The transform component of the source object.
PPtr<Transform
>: (2018.1.0b2 - 2022.3.2f1)
weight: f32
The weight of the source in the evaluation of the constraint.
Trait Implementations§
Source§impl Debug for ConstraintSource
impl Debug for ConstraintSource
Source§impl<'de> Deserialize<'de> for ConstraintSource
impl<'de> Deserialize<'de> for ConstraintSource
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 ConstraintSource
impl RefUnwindSafe for ConstraintSource
impl Send for ConstraintSource
impl Sync for ConstraintSource
impl Unpin for ConstraintSource
impl UnwindSafe for ConstraintSource
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