Struct ambient_api::core::camera::concepts::CameraOptional
source · pub struct CameraOptional {
pub translation: Option<Vec3>,
pub rotation: Option<Quat>,
pub scale: Option<Vec3>,
pub main_scene: Option<()>,
pub ui_scene: Option<()>,
pub user_id: Option<String>,
}
Expand description
Optional part of Camera.
Fields§
§translation: Option<Vec3>
Component: ambient_core::transform::translation
Suggested value: Vec3::new(0f32, 0f32, 0f32, )
Component description: The translation/position of this entity.
rotation: Option<Quat>
Component: ambient_core::transform::rotation
Suggested value: Quat::from_xyzw(0f32, 0f32, 0f32, 1f32, )
Component description: The rotation of this entity.
scale: Option<Vec3>
Component: ambient_core::transform::scale
Suggested value: Vec3::new(1f32, 1f32, 1f32, )
Component description: The scale of this entity.
main_scene: Option<()>
Component: ambient_core::app::main_scene
Description: Either the main or UI scene must be specified for this camera to be used.
Component description: If attached, this entity belongs to the main scene.
ui_scene: Option<()>
Component: ambient_core::app::ui_scene
Description: Either the main or UI scene must be specified for this camera to be used.
Component description: If attached, this entity belongs to the UI scene.
user_id: Option<String>
Component: ambient_core::player::user_id
Description: If set, this camera will only be used for the specified user.
Component description: An identifier attached to all things owned by a user, and supplied by the user. This can be attached to more than just the player; by convention, it is also attached to related entities, including their camera and body.
Trait Implementations§
source§impl Clone for CameraOptional
impl Clone for CameraOptional
source§fn clone(&self) -> CameraOptional
fn clone(&self) -> CameraOptional
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CameraOptional
impl Debug for CameraOptional
source§impl Default for CameraOptional
impl Default for CameraOptional
source§fn default() -> CameraOptional
fn default() -> CameraOptional
source§impl<'de> Deserialize<'de> for CameraOptional
impl<'de> Deserialize<'de> for CameraOptional
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CameraOptional, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CameraOptional, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl PartialEq for CameraOptional
impl PartialEq for CameraOptional
source§fn eq(&self, other: &CameraOptional) -> bool
fn eq(&self, other: &CameraOptional) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CameraOptional
impl Serialize for CameraOptional
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,
impl StructuralPartialEq for CameraOptional
Auto Trait Implementations§
impl RefUnwindSafe for CameraOptional
impl Send for CameraOptional
impl Sync for CameraOptional
impl Unpin for CameraOptional
impl UnwindSafe for CameraOptional
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,
Any
.