A project that bridges the class reference functionality of Unreal Engine with Unity. This system allows developers to select and use class types in the Unity Inspector, similar to Unreal Engine's class reference variable.
- Select class types from a dropdown in the Unity Inspector.
- Dynamically add selected class types to GameObjects at runtime.
- Simple setup and easy to integrate into existing Unity projects.
- Unity 2022.3.26f1
First, clone the repository to your local machine:
git clone https://github.com/yourusername/UnrealToUnityClassSelector.git
Open the cloned project in Unity.
In your Unity scene, create an empty GameObject or use an existing one.
- Select the GameObject in the hierarchy.
- In the Inspector, click on "Add Component".
- Type
UClassSelectorExample
and select it from the list to attach it to the GameObject.
With the GameObject selected, locate the UClassSelectorExample
component in the Inspector.
- You will see a dropdown menu labeled "Selected U Class".
- Click on the dropdown menu to view a list of available class types derived from MonoBehaviour.
- Select a class type from the list.
Click the "Play" button in the Unity Editor to run the scene.
During runtime, the selected class type will be added as a component to the GameObject. You can verify this by inspecting the GameObject in the Inspector during play mode.
- Kearin L
- GitHub: @Kearinl
- Unity3D Game Developer
- Proficient in: C#, C++, Java, Python