VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
script.cpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2025-2026 Arnis Lektauers
3
//
4
// Created by Arnis Lektauers on 28.12.2025
5
//
6
#include "
script.h
"
7
8
#include "
framework/entity.h
"
9
#include <
framework/components/script/scriptComponent.h
>
10
11
namespace
visutwin::canvas
12
{
13
bool
Script::enabled
()
const
14
{
15
// Note: entity hierarchy enabled state does not yet drive script execution.
16
// Graph hierarchy state is not fully wired, so all scripts remain enabled.
17
return
_enabled && _entity->script()->enabled();
18
}
19
}
visutwin::canvas::Script::enabled
bool enabled() const
Definition
script.cpp:13
entity.h
visutwin::canvas
Definition
eventHandler.cpp:9
script.h
scriptComponent.h
framework
script
script.cpp
Generated by
1.16.1