Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


serializeInlineMappingsOnOneLine

[Obsolete] Unity now always serializes inline mappings on one line. This property always returns true.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Deprecated. serializeInlineMappingsOnOneLine is deprecated. Unity now always serializes inline mappings on one line. This property always returns true.
public static bool serializeInlineMappingsOnOneLine { get; set; }

Remarks

This property is deprecated. Unity now always writes references and similar YAML structures on one line to reduce version control noise. The property always returns
true
and setting it has no effect.
Unity always serializes inline mappings like this:
m_MySerializedAssetReference: {fileID: 10304, guid: a2eb3ee376dd24a4f9221a30765d895b, type: 3}