# \#newobject

**URL:** https://forums.unrealengine.com/tag/newobject/5661.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Assertion Failed !IsGarbageCollecting()](https://forums.unrealengine.com/t/assertion-failed-isgarbagecollecting/481686)

<div class="topic-metadata">

**Author:** [@StuntThumper88](https://forums.unrealengine.com/u/StuntThumper88)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 4:57pm UTC](https://forums.unrealengine.com/t/assertion-failed-isgarbagecollecting/481686 "2021-05-21T16:57:34Z")

</div>

I have a plugin that tries to create UObjects after a database request, but occasionally it crashes because its trying to make UResultRow (a UObject) while its garbage collecting? I’ve break pointed it and VS says I’m in…

---

## [Component created with NewObject is invisible](https://forums.unrealengine.com/t/component-created-with-newobject-is-invisible/409937)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1c4cdb3c](https://forums.unrealengine.com/u/anonymous_user_1c4cdb3c)\
**Replies:** 5\
**Last updated:** [March 15, 2021, 2:50am UTC](https://forums.unrealengine.com/t/component-created-with-newobject-is-invisible/409937 "2021-03-15T02:50:17Z")

</div>

maybe it’s visible, but spawned in the origin of the world? try text\_render-\>AttachToComponent(…);

---

## [Unable to override functions in UPawnSensingComponent](https://forums.unrealengine.com/t/unable-to-override-functions-in-upawnsensingcomponent/474917)

<div class="topic-metadata">

**Author:** [@Nyquisttt](https://forums.unrealengine.com/u/Nyquisttt)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 2:53pm UTC](https://forums.unrealengine.com/t/unable-to-override-functions-in-upawnsensingcomponent/474917 "2020-11-24T14:53:26Z")

</div>

UPawnSensingComponent has 2 virtual functions I want to override. Here’s my class: UCLASS() class MYPROJECT\_API UCancellaPawnSensingComponent : public UPawnSensingComponent { GENERATED\_BODY() public: virtual bool Co…

---

## [Instanced Static Mesh](https://forums.unrealengine.com/t/instanced-static-mesh/358872)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Replies:** 2\
**Last updated:** [January 14, 2019, 7:52pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh/358872 "2019-01-14T19:52:43Z")

</div>

Hi all I’m playing around with instanced static meshes and now when I initialize and create everything in constructor and create my instanced static mesh with call to “CreateDefaultSubobject\<\>” everything works as intend…

---

## [Can't assign slate button pointer to global variable](https://forums.unrealengine.com/t/cant-assign-slate-button-pointer-to-global-variable/435410)

<div class="topic-metadata">

**Author:** [@FeirisNyan](https://forums.unrealengine.com/u/FeirisNyan)\
**Replies:** 0\
**Last updated:** [October 11, 2018, 1:27pm UTC](https://forums.unrealengine.com/t/cant-assign-slate-button-pointer-to-global-variable/435410 "2018-10-11T13:27:14Z")

</div>

Crashes when clicked on created button with LOG error: LogScript: Warning: Script Msg: No world was found for object (/Engine/Transient.UnrealEdEngine\_0:GameInstance\_0.PlayerHUD\_C\_0.Butt\_0) passed in to UEngine::GetWorl…

---

## [UPROPERTY is null](https://forums.unrealengine.com/t/uproperty-is-null/429984)

<div class="topic-metadata">

**Author:** [@Vetril](https://forums.unrealengine.com/u/Vetril)\
**Replies:** 0\
**Last updated:** [July 22, 2018, 9:46am UTC](https://forums.unrealengine.com/t/uproperty-is-null/429984 "2018-07-22T09:46:09Z")

</div>

Hi guys, I’m trying to pass to a class that extends UButton a TSubclassOf UPROPERTY that points to a BP class. I then use this UPROPERTY to construct an instance through NewObject. The problem I am having right now is …

---

## [StaticConstructObject is deprecated - NewObject usage?](https://forums.unrealengine.com/t/staticconstructobject-is-deprecated-newobject-usage/382533)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_72bd6bb91](https://forums.unrealengine.com/u/anonymous_user_72bd6bb91)\
**Replies:** 1\
**Last updated:** [March 18, 2018, 7:49pm UTC](https://forums.unrealengine.com/t/staticconstructobject-is-deprecated-newobject-usage/382533 "2018-03-18T19:49:55Z")

</div>

Hello everyone, I’ve been working on a project on and off for a while and last I had time was in 4.9.2. I recently got back into it and decided that upgrading my project to 4.14 would be worthwhile with the recent chang…

---

## [What is the difference between registered and unregistered component?](https://forums.unrealengine.com/t/what-is-the-difference-between-registered-and-unregistered-component/416450)

<div class="topic-metadata">

**Author:** [@devilhiyan](https://forums.unrealengine.com/u/devilhiyan)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 8:43am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-registered-and-unregistered-component/416450 "2018-02-05T08:43:00Z")

</div>

I am adding a new component in construction script with NewObject()(as its procedurally generated content), then I didn’t register the component and it worked fine, then I tried with RegisterComponent() and it works the …

---

## [New objects spawned in C++ during play added to the derived blueprints too?](https://forums.unrealengine.com/t/new-objects-spawned-in-c-during-play-added-to-the-derived-blueprints-too/414509)

<div class="topic-metadata">

**Author:** [@MC1RScorpion](https://forums.unrealengine.com/u/MC1RScorpion)\
**Replies:** 5\
**Last updated:** [January 14, 2018, 1:44pm UTC](https://forums.unrealengine.com/t/new-objects-spawned-in-c-during-play-added-to-the-derived-blueprints-too/414509 "2018-01-14T13:44:40Z")

</div>

Hello, I’ve used NewObject() to spawn a new component during gameplay but nothing is showing up when the function is executed. The code compiles without complaint. Are my suspicions that new components spawned in a C++…

---

## [C++ spawned component stuck hidden](https://forums.unrealengine.com/t/c-spawned-component-stuck-hidden/403028)

<div class="topic-metadata">

**Author:** [@Kowbell](https://forums.unrealengine.com/u/Kowbell)\
**Replies:** 0\
**Last updated:** [August 28, 2017, 12:37am UTC](https://forums.unrealengine.com/t/c-spawned-component-stuck-hidden/403028 "2017-08-28T00:37:26Z")

</div>

A USceneComponent-derived class is spawned via NewObject\<UMyComponent\>(this, UMyComponent::StaticClass()); However, in the editor, it is stuck as hidden, despite me very explicitly trying to tell it otherwise: As yo…

---

## [NewObject関数を使用すると例外が出る](https://forums.unrealengine.com/t/newobject/398939)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_918ed5781](https://forums.unrealengine.com/u/anonymous_user_918ed5781)\
**Replies:** 2\
**Last updated:** [June 22, 2017, 10:08am UTC](https://forums.unrealengine.com/t/newobject/398939 "2017-06-22T10:08:39Z")

</div>

ありがとうございます。例外が出ないことを確認できました。

---

## [How to instantiate using New Object?](https://forums.unrealengine.com/t/how-to-instantiate-using-new-object/384070)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Replies:** 1\
**Last updated:** [February 6, 2017, 2:22pm UTC](https://forums.unrealengine.com/t/how-to-instantiate-using-new-object/384070 "2017-02-06T14:22:52Z")

</div>

This subject seems to have gotten a little murky since Construct Object was depreciated. What is the correct way to use New Object to spawn a new instance of a UClass? I’m trying to build a custom factory for dynamicall…

---

## [NewObject with empty name can't be used to create default subobjects](https://forums.unrealengine.com/t/newobject-with-empty-name-cant-be-used-to-create-default-subobjects/341555)

<div class="topic-metadata">

**Author:** [@MasterHunter](https://forums.unrealengine.com/u/MasterHunter)\
**Replies:** 6\
**Last updated:** [December 21, 2015, 7:44pm UTC](https://forums.unrealengine.com/t/newobject-with-empty-name-cant-be-used-to-create-default-subobjects/341555 "2015-12-21T19:44:59Z")

</div>

So, I’m trying to upgrade my project, but the last error that I’m stuck on is “NewObject with empty name can’t be used to create default subobjects (inside of UObject derived class constructor) as it produces inconsist…

---

## [How do I convert a uobject pointer to a normal local variable?](https://forums.unrealengine.com/t/how-do-i-convert-a-uobject-pointer-to-a-normal-local-variable/317575)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a4cc7aca](https://forums.unrealengine.com/u/anonymous_user_a4cc7aca)\
**Replies:** 1\
**Last updated:** [May 7, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/how-do-i-convert-a-uobject-pointer-to-a-normal-local-variable/317575 "2015-05-07T23:09:49Z")

</div>

I’m building a database plugin in which I have a query object that has a model object as a property. The model object property has an array of column objects in it. You can think of the model as a database table ro…

---

## [How can I create a new object from a pointer?](https://forums.unrealengine.com/t/how-can-i-create-a-new-object-from-a-pointer/317551)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a4cc7aca](https://forums.unrealengine.com/u/anonymous_user_a4cc7aca)\
**Replies:** 13\
**Last updated:** [May 7, 2015, 11:08pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-new-object-from-a-pointer/317551 "2015-05-07T23:08:20Z")

</div>

I cant seem to create a new object from a nested pointer for my plugin. My code is setup like so: I create a query object, the query object has a model property. I need to return an array of models. Currently I’m stuck c…

---

## [Clarification about GC and NewObject\<\>](https://forums.unrealengine.com/t/clarification-about-gc-and-newobject/315111)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5c81321f](https://forums.unrealengine.com/u/anonymous_user_5c81321f)\
**Replies:** 2\
**Last updated:** [April 16, 2015, 12:53am UTC](https://forums.unrealengine.com/t/clarification-about-gc-and-newobject/315111 "2015-04-16T00:53:44Z")

</div>

I have a plugin module where the implementation class is derived from custom derivation of IModuleInterface. The module loads fine and is accessible. Inside the module implementation I have a private regular C++ pointer …
