# A few questions about UObjects and Singleton

**URL:** <https://forums.unrealengine.com/t/a-few-questions-about-uobjects-and-singleton/353766>\
**Category:** C++\
**Tags:** unreal-engine, crash, UE4, CPP, question\
**Created:** [April 11, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/a-few-questions-about-uobjects-and-singleton/353766 "2016-04-11T14:29:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon65365138](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon65365138](https://forums.unrealengine.com/u/anon65365138)\
**Post date:** [April 11, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/a-few-questions-about-uobjects-and-singleton/353766/1 "2016-04-11T14:29:09Z")

</div>

My project is 2D Chrono Trigger-ish (or Final Fantasy) with using a lot of Uflipbook.

The problems that I encounter, bugged me 2-3 days now. These question is very beginner-ish but I really need your help. Please…

1.I created C++ class inherited from UObject, and how do I create instance from it? I need to use it like Singleton.

I tried an actor object to “Construct Object” my singleton, and I cannot check whether it is instanced really or not.

I also tried Rama’s global access code

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

something is not enough to do what i want.

I need to use it from my Singleton during runtime too. Using value (or reference) from data in my Singleton…

2.Inside my UObject based Singleton, there are manager classes, which inherited from UObject. one of them is called Animation Manager,

which I used it to store a lot of Flipbooks by TMap (by accessing through UFUNCTION). The problem is… when my player actor use this Animation Manager’s flipbook

through my Singleton, it crashes my Unreal Engine, and I have to delete Binary folder in order to open Unreal Engine again.

Is there better way to implement sub manager class? and how to use it?

extra question : When I play the scene, GameMode1, GameNetworkManager1, and a lot of stuff pops out. I don’t really need them except camera, because as I explained above,

it is Chrono Trigger Style game, not FPS shooter. How do I disable them?

I am aware that I am asking a lot. I have been researching the Unreal Engine by myself and googling. those actions is not enough to get what I want.

Pretty Please. 😛
