Empty Actor is a building block of hierarchies so don't include dummy bounds there. Wait for dragged asset to be loaded for proper bounds. Use mesh bounds for non-active Animated Model for accurate placement.
19 lines
461 B
C++
19 lines
461 B
C++
// Copyright (c) Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "../Actor.h"
|
|
|
|
/// <summary>
|
|
/// The empty actor that is useful to create hierarchy and/or hold scripts. See <see cref="Script"/>.
|
|
/// </summary>
|
|
API_CLASS(Attributes="ActorContextMenu(\"New/Actor\"), ActorToolbox(\"Other\")")
|
|
class FLAXENGINE_API EmptyActor : public Actor
|
|
{
|
|
DECLARE_SCENE_OBJECT(EmptyActor);
|
|
|
|
protected:
|
|
// [Actor]
|
|
void OnTransformChanged() override;
|
|
};
|