# Material instance parameters losing values in 4.19

**URL:** <https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478>\
**Category:** Asset Creation\
**Tags:** instance, unreal-engine, question\
**Created:** [March 21, 2018, 5:13pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478 "2018-03-21T17:13:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [March 21, 2018, 5:13pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/1 "2018-03-21T17:13:47Z")

</div>

1. In 4.18 or older versions, create a material with a material function in it.
2. Enter and put some textures inside the material function.
3. Set textures to be “Shared: Wrap” but keep one texture at “From texture asset” and connect them to corresponding slots.
4. Multiply a UV node by a scalar parameter per texture so you can individually control tiling of each texture separately through material instance.
5. Create and apply the material instance to landscape or something else, then set custom tiling values to each parameter.
6. Save the project.
7. Open the project in 4.19.0

Result: Texture samplers that are set to be “Shared: Wrap” have lost the parameter values associated with them. But the ones that were set to be “From texture asset” still have their values.

What we mentioned in repro steps regarding tiling, does not limit to tiling, but any other calculations associated with samplers that are set to be “Shared: Wrap”.

4.18:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/0/9709295030e019df8d1148fbd1ffb67224182fb9.jpeg)

4.19.0:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/9/c59a12b9014920ae008f6a1199d6f11afbd776b2.jpeg)

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [March 21, 2018, 6:09pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/2 "2018-03-21T18:09:53Z")

</div>

also experiencing this!

---

<div class="post-metadata">

**Author:** ![OverRated\_AU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/overrated_au/32/1008648_2.png) [@OverRated\_AU](https://forums.unrealengine.com/u/OverRated_AU)\
**Post date:** [March 23, 2018, 8:26am UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/3 "2018-03-23T08:26:09Z")

</div>

I reported a similar bug on day one, where mat functions parameters inside other mat functions wouldn’t be saved in mat instances.

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [March 24, 2018, 7:04pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/4 "2018-03-24T19:04:34Z")

</div>

Ah yeah I added the material function in the repro steps (steps 1/2).

---

<div class="post-metadata">

**Author:** ![Velo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Velo](https://forums.unrealengine.com/u/Velo)\
**Post date:** [March 25, 2018, 5:00am UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/5 "2018-03-25T05:00:44Z")

</div>

Having the same problem. Quite simply, material instances of a parent landscape material will not save their changed settings properly. If I change, for example, the near distance tiling of a texture in the landscape material instance, as soon as I close and re-open it, it reverts back to default settings – instead of saving the changes that were made.

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [March 26, 2018, 9:46pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/6 "2018-03-26T21:46:09Z")

</div>

Hello,

Any word from Epic?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_79b12e0f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_79b12e0f](https://forums.unrealengine.com/u/anonymous_user_79b12e0f)\
**Post date:** [March 27, 2018, 8:55pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/7 "2018-03-27T20:55:32Z")

</div>

Unfortunately I wasn’t able to reproduce this issue with the repro steps you’ve provided.

In 4.18, I created a new project, then created a material with a material function:

 ![235299-mf.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/6/4e6918f3d9284af6d6ea81b84caf18010f7fc886.jpeg)

 ![235300-m.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/3/5a30bacb1fbf6f1c840fd2d375d8b6311240cad5.jpeg)

I made sure all textures were set to “Shared: Wrap” except for the texture being used for the Normal, which was kept as “From texture asset.”

Here you can see the Material Instance and the scalar parameter values I entered, along with the resulting scene.

 ![235311-mi.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/a/5aade5d9cf9a6860776b67ff781aa4f75bc02fda.jpeg)

 ![235312-418-screenshot.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/6/5064874c31b6e9706efb7611d81acf0847671045.jpeg)

Next, I saved the project and opened it in 4.19 and all the scalar parameter values were copied over correctly and the scene looks as expected.

 ![235313-419.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/7/137701ce19c07a3ecf9d58992e9eb891f9f11dda.png)

Please let me know if there is anything I’ve missed.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [March 27, 2018, 9:01pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/8 "2018-03-27T21:01:36Z")

</div>

I believe the ‘lost’ parameters only get lost when they reside inside a material function. your repro doesn’t attempt to do that - I know the original repro steps didn’t mention it but they do now, as well as the comments below

given the seriousness of the issue, if that still fails I’d suggest the following:

- from the marketplace import any of the “Realistic Landscapes Bundle” packs into a new project
- open any of the showcase maps
- notice the material instance parameters are lost
- repeat in 4.18, and see how everything works correctly

---

<div class="post-metadata">

**Author:** ![OverRated\_AU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/overrated_au/32/1008648_2.png) [@OverRated\_AU](https://forums.unrealengine.com/u/OverRated_AU)\
**Post date:** [March 27, 2018, 10:29pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/9 "2018-03-27T22:29:08Z")

</div>

Hi Jon, i think the real issues comes from mats with mat functions parameters inside other mat function, these parameters are not saved, so you need to create 2 mat functions add one inside the other then try saving the parameters inside that 2nd mat functuon inside a mat instance, you can do this just in 4.19.

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [March 27, 2018, 11:05pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/10 "2018-03-27T23:05:27Z")

</div>

Hi @Jon X ♦♦, Someone else from Epic said on the forum thread that they were able to reproduce the issue: [https://forums.unrealengine.com/unreal-engine/marketplace/creators-hub/1447833-4-19-bug-and-marketplace-content?p=1451320#post1451320](https://forums.unrealengine.com/unreal-engine/marketplace/creators-hub/1447833-4-19-bug-and-marketplace-content?p=1451320#post1451320)

---

<div class="post-metadata">

**Author:** ![Pouletus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pouletus](https://forums.unrealengine.com/u/Pouletus)\
**Post date:** [March 29, 2018, 1:25pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/11 "2018-03-29T13:25:38Z")

</div>

I’ve got the exact same problem… Pretty annoying!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [March 29, 2018, 7:56pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/12 "2018-03-29T19:56:25Z")

</div>

Hey all,

Trying to get a repro on this (Incorporated recent suggestion from OverRated\_AU). Still not seeing it.

Attaching my 4.18 base project, anyone see what needs to be added/changed?

link text

---

<div class="post-metadata">

**Author:** ![OverRated\_AU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/overrated_au/32/1008648_2.png) [@OverRated\_AU](https://forums.unrealengine.com/u/OverRated_AU)\
**Post date:** [March 29, 2018, 9:41pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/13 "2018-03-29T21:41:56Z")

</div>

Hi , This seems to have more than the single issue i have found, please download my debug project (materialinstancebug.zip) below, go into Test\_Mat\_Inst and set a value in TRYSAVEME save it and close it then reopen it, you will see the saved parameters is lost but then again it seems to be saving it to the above parameter? so it seems there’s more than just lost save data going on here, now i thought it mite of been because there no feed back from these to main node, but then again in the 2nd debug project (materialinstancebugtest2.zip) it is but instead this time its not saved in the above parameter its just not saved at all.

I hope these debug projects help.

link text

link text

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [March 29, 2018, 10:47pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/14 "2018-03-29T22:47:03Z")

</div>

Hi @ O ♦♦, In addition to OverRated\_AU’s provided files, is there any way I can give you our project in private? unfortunately can’t share our projects in public. But it’s probably going to help you see what’s going on between 4.18 and 4.19.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0ddaf19b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0ddaf19b](https://forums.unrealengine.com/u/anonymous_user_0ddaf19b)\
**Post date:** [March 30, 2018, 10:29am UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/15 "2018-03-30T10:29:37Z")

</div>

Hi all, if it can be of any help I found out the problem lies in the expression guids of the material instances parents, there appears to be some collisions of IDs between materials expressions and materials functions expressions, leading to the rewrite of parameters names and consequent shuffle of parameters values.

Still not sure how or why this problem arises only when updating to 4.19, maybe a deserialization bug?

I got the materials to render correctly by invalidating the expression guids in the parameters, but the editing is still broken.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [March 30, 2018, 3:13pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/16 "2018-03-30T15:13:24Z")

</div>

Thanks for these!

Just to clarify: were these created in 4.18 and converted to 4.19?

---

<div class="post-metadata">

**Author:** ![OverRated\_AU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/overrated_au/32/1008648_2.png) [@OverRated\_AU](https://forums.unrealengine.com/u/OverRated_AU)\
**Post date:** [March 30, 2018, 3:16pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/17 "2018-03-30T15:16:41Z")

</div>

These are just made in 4.19, but creating them in 4.18 and converting the project you end up with the same result ether way.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_942e8e52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_942e8e52](https://forums.unrealengine.com/u/anonymous_user_942e8e52)\
**Post date:** [March 30, 2018, 4:06pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/18 "2018-03-30T16:06:37Z")

</div>

I have entered this bug as [Unreal Engine Issues and Bug Tracker (UE-57086)](https://issues.unrealengine.com/issue/UE-57086) Critical Priority

---

<div class="post-metadata">

**Author:** ![OverRated\_AU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/overrated_au/32/1008648_2.png) [@OverRated\_AU](https://forums.unrealengine.com/u/OverRated_AU)\
**Post date:** [March 30, 2018, 5:33pm UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/19 "2018-03-30T17:33:28Z")

</div>

Great thanks for the heads up O.

---

<div class="post-metadata">

**Author:** ![steter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@steter](https://forums.unrealengine.com/u/steter)\
**Post date:** [April 8, 2018, 2:15am UTC](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478/20 "2018-04-08T02:15:24Z")

</div>

The target fix is 4.20? So 4.19 and all of the cool Paragon assets are essentially unusable because, quite frankly, landscapes suck without the ability to alter material function parameters. What a waste of time converting to 4.19, then. Can’t this get bumped up? Extremely disappointing.

[Next page](https://forums.unrealengine.com/t/material-instance-parameters-losing-values-in-4-19/420478.md?page=2)
