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
5
#include "
../../core/Types.hpp
"
6
#include "
../../core/Reflection.hpp
"
7
8
namespace
esengine::ecs
{
9
17
ES_COMPONENT
(stability=beta)
18
struct
GroupOpacity
{
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
22
ES_PROPERTY
()
23
bool
enabled
{
true
};
24
};
25
26
}
// namespace esengine::ecs
Reflection.hpp
Reflection and metadata system for automatic binding generation.
ES_COMPONENT
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
Definition
Reflection.hpp:46
ES_PROPERTY
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Definition
Reflection.hpp:95
Types.hpp
Core type definitions and utilities for ESEngine.
esengine::ecs
Definition
AotComponents.generated.hpp:8
esengine::f32
float f32
32-bit floating point
Definition
Types.hpp:59
esengine::ecs::GroupOpacity
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.
Definition
GroupOpacity.hpp:18
esengine::ecs::GroupOpacity::enabled
bool enabled
Definition
GroupOpacity.hpp:23
esengine::ecs::GroupOpacity::opacity
f32 opacity
Definition
GroupOpacity.hpp:20
src
esengine
ecs
components
GroupOpacity.hpp
Generated by
1.15.0