CameraComponent¶
CameraComponent ¶
is_main
property
writable
¶
is_main: bool
Whether this is the active/main camera. Setting this to True on one camera does not automatically unset another camera's is_main.
add_component ¶
add_component(component_class: Any) -> typing.Any
Attach a new component of the given type to this component's owning Object.
Example
render = self.add_component(RenderComponent)
add_object ¶
add_object(obj: Object, parent: Object = None) -> Object
Add a newly created Object to the scene, optionally parented to another Object
get_component ¶
get_component(component_class: Any) -> typing.Any
Look up a component on this Object
has_component ¶
has_component(component_class: Any) -> bool
Check whether this component's owning Object has a component of the given type
remove_component ¶
remove_component(component_class: Any) -> None
Remove a component of the given type from this component's owning Object
set_range ¶
set_range(range: SupportsFloat | SupportsIndex) -> None
Set range. See the range property.