// Copyright (c) Wojciech Figat. All rights reserved. namespace FlaxEngine { partial class Script { /// /// Gets the scene object which contains this script. /// [HideInEditor, NoSerialize] public Scene Scene { get { var parent = Actor; return parent ? parent.Scene : null; } } /// /// Gets value indicating if the actor owning the script is in a scene. /// [HideInEditor, NoSerialize] public bool HasScene => Actor?.HasScene ?? false; /// /// Gets or sets the world space transformation of the actors owning this script. /// [HideInEditor, NoSerialize, NoAnimate] public Transform Transform { get => Actor.Transform; set => Actor.Transform = value; } /// /// Gets or sets the local space transformation of the actors owning this script. /// [HideInEditor, NoSerialize, NoAnimate] public Transform LocalTransform { get => Actor.LocalTransform; set => Actor.LocalTransform = value; } } }