# Unity - Broken if in a prefab?

**URL:** https://discourse.kitware.com/t/unity-broken-if-in-a-prefab/967
**Category:** Pulse Physiology Engine
**Created:** [January 31, 2023, 3:05am UTC](https://discourse.kitware.com/t/unity-broken-if-in-a-prefab/967 "2023-01-31T03:05:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shess](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@shess](https://discourse.kitware.com/u/shess)
#### Post date: [January 31, 2023, 3:05am UTC](https://discourse.kitware.com/t/unity-broken-if-in-a-prefab/967/1 "2023-01-31T03:05:49Z")

</div>

Hello!

I’m having an issue where a PulseDataLineRenderer has an error with the data source & data field when it (along with the PulseEngineDriver instance) are placed in a prefab. In the scene where the prefab is instanced, I just get the error on the instance: Data source could not generate valid data fields, and it will just fail at runtime.

I’m guessing this is being caused by the fancy footwork the PulseDataConsumerEditor is playing with the sourceProp & dataFieldIndexProp that hides those in the editor but tries to set those values appropriately, but I haven’t done a ton with custom Editors to spot what is wrong.

Unity 2021.3.13f1, just running in the editor.

Any help is much appreciated!

Thanks!

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [January 31, 2023, 2:59pm UTC](https://discourse.kitware.com/t/unity-broken-if-in-a-prefab/967/2 "2023-01-31T14:59:02Z")

</div>

I have not tried to do this  
I will see if I can figure something out when we update the next asset  
Which should be in Feb.

---

<div class="post-metadata">

### Author: ![shess](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@shess](https://discourse.kitware.com/u/shess)
#### Post date: [February 1, 2023, 12:12am UTC](https://discourse.kitware.com/t/unity-broken-if-in-a-prefab/967/3 "2023-02-01T00:12:11Z")

</div>

Great, thank you for your time!
