Search Results for

    Show / Hide Table of Contents

    Class UIControl

    Contains a single GUI control (on C# side).

    Inheritance
    System.Object
    Object
    SceneObject
    Actor
    UIControl
    Implements
    ISerializable
    Inherited Members
    Actor.SetLayerRecursive(Int32)
    Actor.SetLayerNameRecursive(String)
    Actor.HasTag()
    Actor.HasTag(Tag)
    Actor.HasTag(String)
    Actor.AddTag(Tag)
    Actor.AddTagRecursive(Tag)
    Actor.RemoveTag(Tag)
    Actor.SetParent(Actor, Boolean, Boolean)
    Actor.GetChild(Int32)
    Actor.GetChild(String)
    Actor.GetChild(Type)
    Actor.GetChildren(Type)
    Actor.DestroyChildren(Single)
    Actor.GetScript(Int32)
    Actor.GetScript(Type)
    Actor.GetScripts(Type)
    Actor.AddMovement(Vector3)
    Actor.AddMovement(Vector3, Quaternion)
    Actor.GetWorldToLocalMatrix(Matrix)
    Actor.GetLocalToWorldMatrix(Matrix)
    Actor.OnDebugDraw()
    Actor.OnDebugDrawSelected()
    Actor.GetPrefabRoot()
    Actor.FindActor(String)
    Actor.FindActor(Type, Boolean)
    Actor.FindActor(Type, String)
    Actor.FindActor(Type, Tag, Boolean)
    Actor.FindScript(Type)
    Actor.HasActorInHierarchy(Actor)
    Actor.HasActorInChildren(Actor)
    Actor.IntersectsItself(Ray, Single, Vector3)
    Actor.Intersects(Ray, Single, Vector3)
    Actor.LookAt(Vector3)
    Actor.LookAt(Vector3, Vector3)
    Actor.LookingAt(Vector3)
    Actor.LookingAt(Vector3, Vector3)
    Actor.ToBytes(Actor[])
    Actor.FromBytes(Byte[])
    Actor.FromBytes(Byte[], Dictionary<Guid, Guid>)
    Actor.TryGetSerializedObjectsIds(Byte[])
    Actor.ToJson()
    Actor.FromJson(String)
    Actor.Clone()
    Actor.OnEnable()
    Actor.OnDisable()
    Actor.OnParentChanged()
    Actor.OnTransformChanged()
    Actor.OnActiveChanged()
    Actor.OnActiveInTreeChanged()
    Actor.OnOrderInParentChanged()
    Actor.OnStaticFlagsChanged()
    Actor.OnLayerChanged()
    Actor.OnBeginPlay()
    Actor.OnEndPlay()
    Actor.AddStaticFlags(StaticFlags)
    Actor.RemoveStaticFlags(StaticFlags)
    Actor.SetStaticFlag(StaticFlags, Boolean)
    Actor.HasStaticFlag(StaticFlags)
    Actor.ResetLocalTransform()
    Actor.AddChild(Type)
    Actor.AddChild<T>()
    Actor.GetChild<T>()
    Actor.TryGetChild<T>(T)
    Actor.GetOrAddChild<T>()
    Actor.AddScript(Type)
    Actor.AddScript<T>()
    Actor.GetScript<T>()
    Actor.TryGetScript<T>(T)
    Actor.FindScript<T>()
    Actor.FindActor<T>(Boolean)
    Actor.FindActor<T>(String)
    Actor.FindActor<T>(Tag, Boolean)
    Actor.GetChildren<T>()
    Actor.GetScripts<T>()
    Actor.RotateAround(Vector3, Vector3, Single, Boolean)
    Actor.ToString()
    Actor.Children
    Actor.Tags
    Actor.Layer
    Actor.Name
    Actor.IsActive
    Actor.StaticFlags
    Actor.PerInstanceRandom
    Actor.LocalPosition
    Actor.LocalOrientation
    Actor.LocalScale
    Actor.Sphere
    Actor.Box
    Actor.BoxWithChildren
    Actor.EditorBox
    Actor.EditorBoxChildren
    Actor.HasContentLoaded
    Actor.IsPrefabRoot
    Actor.IsStatic
    Actor.IsTransformStatic
    Actor.WorldToLocalMatrix
    Actor.LocalToWorldMatrix
    SceneObject.SetParent(Actor, Boolean)
    SceneObject.LinkPrefab(Guid, Guid)
    SceneObject.BreakPrefabLink()
    SceneObject.GetNamePath(Char)
    SceneObject.IsDuringPlay
    SceneObject.HasParent
    SceneObject.HasPrefabLink
    SceneObject.PrefabID
    SceneObject.PrefabObjectID
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [ActorContextMenu("New/UI/UI Control")]
    [ActorToolbox("GUI", "Empty UIControl")]
    [Unmanaged]
    public sealed class UIControl : Actor, ISerializable

    Constructors

    UIControl()

    Initializes a new instance of the UIControl.

    Declaration
    public UIControl()

    Fields

    FallbackParentGetDelegate

    The fallback callback used to handle UIControl parent container control to link when it fails to find the default parent. Can be used to link the controls into a custom control.

    Declaration
    public static Func<UIControl, ContainerControl> FallbackParentGetDelegate
    Field Value
    System.Func<UIControl, ContainerControl>

    Properties

    Bounds

    Gets the world-space oriented bounding box that contains a 3D control.

    Declaration
    public OrientedBoundingBox Bounds { get; }
    Property Value
    OrientedBoundingBox

    Control

    Gets or sets the GUI control used by this actor.

    Declaration
    [EditorDisplay("Control", "__inline__")]
    [CustomEditorAlias("FlaxEditor.CustomEditors.Dedicated.UIControlControlEditor")]
    [EditorOrder(50)]
    public Control Control { get; set; }
    Property Value
    Control

    Remarks

    When changing the control, the previous one is disposed. Use UnlinkControl() to manage it on your own.

    HasControl

    Gets a value indicating whether this actor has control.

    Declaration
    public bool HasControl { get; }
    Property Value
    System.Boolean

    NavTargetDown

    The explicitly specified target navigation control for Down direction.

    Declaration
    [Tooltip("The explicitly specified target navigation control for Down direction. Leave empty to use automatic navigation.")]
    [EditorDisplay("Navigation", null)]
    [EditorOrder(1020)]
    [VisibleIf("HasControl", false)]
    public UIControl NavTargetDown { get; set; }
    Property Value
    UIControl

    NavTargetLeft

    The explicitly specified target navigation control for Left direction.

    Declaration
    [Tooltip("The explicitly specified target navigation control for Left direction. Leave empty to use automatic navigation.")]
    [EditorDisplay("Navigation", null)]
    [EditorOrder(1030)]
    [VisibleIf("HasControl", false)]
    public UIControl NavTargetLeft { get; set; }
    Property Value
    UIControl

    NavTargetRight

    The explicitly specified target navigation control for Right direction.

    Declaration
    [Tooltip("The explicitly specified target navigation control for Right direction. Leave empty to use automatic navigation.")]
    [EditorDisplay("Navigation", null)]
    [EditorOrder(1040)]
    [VisibleIf("HasControl", false)]
    public UIControl NavTargetRight { get; set; }
    Property Value
    UIControl

    NavTargetUp

    The explicitly specified target navigation control for Up direction.

    Declaration
    [Tooltip("The explicitly specified target navigation control for Up direction. Leave empty to use automatic navigation.")]
    [EditorDisplay("Navigation", null)]
    [EditorOrder(1010)]
    [VisibleIf("HasControl", false)]
    public UIControl NavTargetUp { get; set; }
    Property Value
    UIControl

    Methods

    AddChildControl<T>()

    Creates a new UIControl with the control of the given type and links it to this control as a child.

    Declaration
    public UIControl AddChildControl<T>()
        where T : Control
    Returns
    UIControl

    The created UIControl that contains a new control of the given type.

    Type Parameters
    T

    Type of the child control to add.

    Remarks

    The current actor has to have a valid container control.

    Get<T>()

    Gets the control object cased to the given type.

    Declaration
    public T Get<T>()
        where T : Control
    Returns
    T

    The control object.

    Type Parameters
    T

    The type of the control.

    Is<T>()

    Checks if the control object is of the given type.

    Declaration
    public bool Is<T>()
        where T : Control
    Returns
    System.Boolean

    True if control object is of the given type.

    Type Parameters
    T

    The type of the control.

    UnlinkControl()

    Unlinks the control from the actor without disposing it or modifying.

    Declaration
    [NoAnimate]
    public void UnlinkControl()

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat