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"
10
11namespace 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}
bool enabled() const
Definition script.cpp:13