Struct amethyst_animation::AnimatablePrefab[][src]

pub struct AnimatablePrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
{ pub animation_set: Option<AnimationSetPrefab<I, T>>, pub hierarchy: Option<AnimationHierarchyPrefab<T>>, pub rest_state: Option<RestState<T>>, }

PrefabData for full animation support

Type parameters

  • I: Id type of Animations in AnimationSets
  • T: The animatable Component

Fields

Place an AnimationSet on the Entity

Place an AnimationHierarchy on the Entity

Place a RestState on the Entity

Trait Implementations

impl<I: Default, T: Default> Default for AnimatablePrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
[src]

Returns the "default value" for a type. Read more

impl<I: Clone, T: Clone> Clone for AnimatablePrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: Debug, T: Debug> Debug for AnimatablePrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
[src]

Formats the value using the given formatter. Read more

impl<'a, I, T> PrefabData<'a> for AnimatablePrefab<I, T> where
    T: AnimationSampling + Clone,
    T::Channel: for<'b> Deserialize<'b> + Serialize,
    T::Primitive: Debug + for<'b> Deserialize<'b> + Serialize,
    I: Clone + Hash + Eq + Send + Sync + 'static, 
[src]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<I, T> Send for AnimatablePrefab<I, T> where
    I: Send,
    <T as AnimationSampling>::Channel: Send,
    <T as AnimationSampling>::Primitive: Send

impl<I, T> Sync for AnimatablePrefab<I, T> where
    I: Sync,
    <T as AnimationSampling>::Channel: Sync,
    <T as AnimationSampling>::Primitive: Sync