# Issue with accesing instance member from this scope is not yet implemented. 

**URL:** <https://forums.unrealengine.com/t/issue-with-accesing-instance-member-from-this-scope-is-not-yet-implemented/2327495>\
**Category:** Verse\
**Tags:** unreal-engine, unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 11, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/issue-with-accesing-instance-member-from-this-scope-is-not-yet-implemented/2327495 "2025-02-11T14:25:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Awere](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mr_awere/32/1029585_2.png) [@Mr\_Awere](https://forums.unrealengine.com/u/Mr_Awere)\
**Post date:** [February 11, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/issue-with-accesing-instance-member-from-this-scope-is-not-yet-implemented/2327495/1 "2025-02-11T14:25:15Z")

</div>

I am attempting to make a custom UI in a Verse-Coded device. I am struggling with trying to add an image texture to a texture\_block DefaultImage variable.

The editor gives me the error: “ **Accesing instance member from this scope is not yet implemented.** ”

I added a “_tag_” to some modules, which fixed the Texture variable holding reference to the image texture in the Content Browser, however, whenever I try to implement it it just does not seem to accept it.

I’ll leave the code segment below:

```auto
custom_ui := class:

    NewTexture<protected> : texture = Widgets.Images.T_Robbery_MoneyBill_Bg

    var MainCanvas<private>:canvas = canvas{}
    var NewImage<private>:texture_block = texture_block {DefaultImage := NewTexture, DefaultDesiredSize := vector2{X:=300.0, Y:=170.0}}

```

---

<div class="post-metadata">

**Author:** ![chokaksam123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chokaksam123](https://forums.unrealengine.com/u/chokaksam123)\
**Post date:** [April 13, 2025, 5:25pm UTC](https://forums.unrealengine.com/t/issue-with-accesing-instance-member-from-this-scope-is-not-yet-implemented/2327495/2 "2025-04-13T17:25:51Z")

</div>

Try creating a new method, for example InitUI, and move the initialization of the NewImage variable there

```auto
custom_ui := class:

    NewTexture<protected> : texture = Widgets.Images.T_Robbery_MoneyBill_Bg

    var MainCanvas<private>:canvas = canvas{}
 
    InitUI():void=
          var NewImage<private>:texture_block = texture_block {DefaultImage := NewTexture, DefaultDesiredSize := vector2{X:=300.0, Y:=170.0}}

```

---

<div class="post-metadata">

**Author:** ![Av\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Av\_1](https://forums.unrealengine.com/u/Av_1)\
**Post date:** [April 18, 2025, 7:29pm UTC](https://forums.unrealengine.com/t/issue-with-accesing-instance-member-from-this-scope-is-not-yet-implemented/2327495/3 "2025-04-18T19:29:56Z")

</div>

I have been building my UIs in some kind of fashion like this. Keeping references to potential widgets at the top initialized as false. Then, I initialize the root canvas and save references I need later in nested code blocks. There is probably a better way.

```auto
custom_ui := class:

    NewTexture<protected> : texture = Widgets.Images.T_Robbery_MoneyBill_Bg

    var MaybeCanvas<private>: ?canvas = false
    var MaybeNewImage<private>: ?texture_block = false
 
    InitializeCanvas<public>():void=
          if (not MaybeCanvas?):
               set MaybeCanvas = option:
                   canvas:
                       Slots := array:
                           canvas_slot:
                               Widget := block:

                                   # Block of code to instantiate New Image
                                   NewImage := texture_block: 
                                        DefaultImage := NewTexture
                                        DefaultDesiredSize := vector2:
                                            X:=300.0
                                            Y:=170.0
                                   set MaybeNewImage = option{NewImage}
                                   NewImage # Returns this texture block from the code block

```
