* ATOM-16747 RPISystemInterface::GetDefaultScene returns the scene created by PreviewRenderer but not the Main Scene
Deprecate GetDefaultScene() function.
Update all the places which use GetDefaultScene to use Scene::GetFeatureProcessorFromEntityId or GetMainScene.
Tested with Editor, UI Editor, Material Editor, game launcher.
Signed-off-by: Qing Tao <55564570+VickyAtAZ@users.noreply.github.com>
(cherry picked from commit 8da6bea073)
//! Unregister a scene from RPISystem. The scene won't be simulated or rendered.
//! Unregister a scene from RPISystem. The scene won't be simulated or rendered.
virtualvoidUnregisterScene(ScenePtrscene)=0;
virtualvoidUnregisterScene(ScenePtrscene)=0;
// [GFX TODO] to be removed when we have scene setup in AZ Core
//! Deprecated. Use GetSceneByName(name), GetSceneForEntityContextId(entityContextId) or Scene::GetSceneForEntityId(AZ::EntityId entityId) instead
virtualScenePtrGetDefaultScene()const=0;
AZ_DEPRECATED(virtualScenePtrGetDefaultScene()const=0;,"This method has been deprecated. Please use GetSceneByName(name), GetSceneForEntityContextId(entityContextId) or Scene::GetSceneForEntityId(AZ::EntityId entityId) instead.");