Fix null values handling in C# Json serialization

It didn't replace prefab object reference if replaced with null in the prefab instance.
This commit is contained in:
Wojtek Figat
2021-08-19 13:03:54 +02:00
parent 4c1dbb7f8e
commit a8c7705c3b
3 changed files with 11 additions and 6 deletions

View File

@@ -877,7 +877,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Gets or sets the tooltip text.
/// </summary>
[HideInEditor]
[HideInEditor, NoSerialize]
public string TooltipText
{
get => _tooltipText;
@@ -887,7 +887,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Gets or sets the custom tooltip control linked. Use null to show default shared tooltip from the current <see cref="Style"/>.
/// </summary>
[HideInEditor]
[HideInEditor, NoSerialize]
public Tooltip CustomTooltip
{
get => _tooltip;