/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include namespace AZ::Render { class EditorStarsComponent final : public EditorRenderComponentAdapter { public: using BaseClass = EditorRenderComponentAdapter; AZ_EDITOR_COMPONENT(AZ::Render::EditorStarsComponent, EditorStarsComponentTypeId, BaseClass); static void Reflect(AZ::ReflectContext* context); EditorStarsComponent() = default; protected: void Init() override; private: //! EditorRenderComponentAdapter //! we override OnConfigurationChanged to avoid deactivating and activating unnecessarily AZ::u32 OnConfigurationChanged() override; void OnEntityVisibilityChanged(bool visibility) override; AZ::Data::AssetId m_prevAssetId; AZStd::string m_defaultAssetPath{ "stars/default.stars" }; }; } // namespace AZ::Render