# DefaultToInstanced - EditInlineNew class / Instanced - EditAnywhere property : edits don't work

**URL:** <https://forums.unrealengine.com/t/defaulttoinstanced-editinlinenew-class-instanced-editanywhere-property-edits-dont-work/313139>\
**Category:** Asset Creation\
**Tags:** property, Instanced-Mesh, unreal-engine, CPP, question\
**Created:** [March 30, 2015, 9:12am UTC](https://forums.unrealengine.com/t/defaulttoinstanced-editinlinenew-class-instanced-editanywhere-property-edits-dont-work/313139 "2015-03-30T09:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emidee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Emidee](https://forums.unrealengine.com/u/Emidee)\
**Post date:** [March 30, 2015, 9:12am UTC](https://forums.unrealengine.com/t/defaulttoinstanced-editinlinenew-class-instanced-editanywhere-property-edits-dont-work/313139/1 "2015-03-30T09:12:03Z")

</div>

Hello,

I had to implement some states for my character, and I did the same guys working on Unreal Tournament did for the weapon states.

I have a state class hierarchy, and the base class has the following attributes:

```
UCLASS( Abstract, DefaultToInstanced, EditInlineNew, Within = BBCharacter )
class UBBCharacterState : public UObject

```

I have several states inheriting from this base class.

I declare them in my character class like this:

```
UPROPERTY( Instanced, EditAnywhere, Category = "States" )
class UBBCharacterStateMoving * MovingState;

UPROPERTY( Instanced, EditAnywhere, Category = "States" )
class UBBCharacterStateJumping * JumpingState;

```

And instantiate them like that:

```
MovingState = PCIP.CreateDefaultSubobject< UBBCharacterStateMoving >( this, TEXT( "StateMoving" ) );
JumpingState = PCIP.CreateDefaultSubobject< UBBCharacterStateJumping >( this, TEXT( "StateJumping" ) );

```

I have declared some properties on the jumping state which I would like to edit in the editor:

```
UCLASS()
class UBBCharacterStateMoving : public UBBCharacterStateNoBall
{
    GENERATED_BODY()

public:

    UBBCharacterStateMoving();

    UPROPERTY( EditAnywhere, Category = "ActionTrigger" )
    float ActionTriggerMinimalDotProduct;
};

```

Everything works fine, except that when I update in the editor the value of ActionTriggerMinimalDotProduct, it keeps its default value I have set in the constructor of the class.

What are the magic keywords I should use to get this working?

Thanks!

---

<div class="post-metadata">

**Author:** ![Emidee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Emidee](https://forums.unrealengine.com/u/Emidee)\
**Post date:** [April 2, 2015, 8:26am UTC](https://forums.unrealengine.com/t/defaulttoinstanced-editinlinenew-class-instanced-editanywhere-property-edits-dont-work/313139/2 "2015-04-02T08:26:57Z")

</div>

As I did not find any solution to my problem (and maybe it’s not a problem, and instanced properties are supposed to behave like that), I created a DataAsset class to hold the various state properties. This way, I can update the values dynamically in the editor, and it is reflected in the game

---

<div class="post-metadata">

**Author:** ![SnowFlying](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/snowflying/32/675980_2.png) [@SnowFlying](https://forums.unrealengine.com/u/SnowFlying)\
**Post date:** [April 8, 2023, 12:08pm UTC](https://forums.unrealengine.com/t/defaulttoinstanced-editinlinenew-class-instanced-editanywhere-property-edits-dont-work/313139/3 "2023-04-08T12:08:53Z")

</div>

We hope this Blueprint Class “EditInlinenNew” plugin (which no longer requires any C++ to use the EditInlinenNew feature) will help you. 🔷

> **[Blueprint EditInlineNew in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/blueprint-editinlinenew)**
>
> Blueprint EditInlineNew feature for Blueprint Class and Blueprint Variable. To implement the EditInlineNew feature, simply check the check box in the blueprint.
