# Slate arguments not in member

**URL:** <https://forums.unrealengine.com/t/slate-arguments-not-in-member/409819>\
**Category:** UI\
**Tags:** unreal-engine, slate, CPP, question\
**Created:** [November 16, 2017, 6:10pm UTC](https://forums.unrealengine.com/t/slate-arguments-not-in-member/409819 "2017-11-16T18:10:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BugSwat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BugSwat](https://forums.unrealengine.com/u/BugSwat)\
**Post date:** [November 16, 2017, 6:10pm UTC](https://forums.unrealengine.com/t/slate-arguments-not-in-member/409819/1 "2017-11-16T18:10:00Z")

</div>

Using [SNew for constructor with arguments?](https://answers.unrealengine.com/questions/719137/snew-for-constructor-with-arguments.html) I created the following code:

```
  public:
	SLATE_BEGIN_ARGS(MyClass)
		: _XXX()
		{}
		SLATE_ATTRIBUTE(TSharedPtr<StyleBase>, XXX)
	SLATE_END_ARGS()

	void Construct(const FArguments& InArgs);

	TSharedPtr<StyleBase> XXX;

```

In MyClass::Construct I try to use it, but I have the following situation

```
XXX.IsValid() -> false
InArgs._XXX.Get().IsValid() -> true

```

I am doing something not or wrong. Any ideas?  
Should not the member be set automatically?  
Or do I have to set the member inside the Construct() method?
