Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
GroupOpacity.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3#pragma once
4
7
8namespace esengine::ecs {
9
17ES_COMPONENT(stability=beta)
19 ES_PROPERTY(min=0, max=1, step=0.01, tooltip="Opacity of this entity and everything under it, multiplied with the opacity of every group above it.")
20 f32 opacity{1.0f};
21
23 bool enabled{true};
24};
25
26} // namespace esengine::ecs
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
float f32
32-bit floating point
Definition Types.hpp:59
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.