Camera Component, Editor Viewport Widget refactoring.
- Handle changing of active camera entirely inside CameraComponentController - Remove a LOT of legacy Cry things related to cameras - Add a CameraSystemComponent to handle ActiveCameraRequestBus and CameraSystemRequestBus Signed-off-by: Yuriy Toporovskyy <toporovskyy.y@gmail.com>
This commit is contained in:
+1
@@ -103,6 +103,7 @@ namespace AZ
|
||||
void SetOrthographic(bool orthographic) override;
|
||||
void SetOrthographicHalfWidth(float halfWidth) override;
|
||||
void MakeActiveView() override;
|
||||
bool IsActiveView() override;
|
||||
|
||||
// RPI::WindowContextNotificationBus overrides...
|
||||
void OnViewportResized(uint32_t width, uint32_t height) override;
|
||||
|
||||
@@ -250,6 +250,11 @@ namespace AZ
|
||||
// do nothing
|
||||
}
|
||||
|
||||
bool CameraComponent::IsActiveView()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CameraComponent::OnViewportResized(uint32_t width, uint32_t height)
|
||||
{
|
||||
AZ_UNUSED(width)
|
||||
|
||||
Reference in New Issue
Block a user