Search Unity

Hacking in multiline serialization not working in Asset Pipeline 2

Discussion in 'Editor & General Support' started by B16B0SS, Jan 17, 2020.

  1. B16B0SS

    B16B0SS

    Joined:
    Apr 29, 2014
    Posts:
    19
    Hi there.

    In asset pipeline 1 / 2019.2 I had a post processing script that would take a long string in an asset file and split it into multiple lines (manually, by rewriting the asset file) using the following syntax:

    Code (CSharp):
    1.   _multilineString: >
    2.     this
    3.     is
    4.     a
    5.     multiline
    6.     string
    7.   anotherVar: b
    This is admittedly hacky, but would deserialize properly in the past. Currently, it looks like unity 2019.3 / asset v2 isn't obeying the YAML folded style format as it reads in the > character instead of treating it as folded style string.

    Is this intentional and related to the asset pipeline 2 as I suspect? Perhaps its within unity 2019.2 to 3? Any help would be appreciated

    see https://stackoverflow.com/questions/3790454/how-do-i-break-a-string-over-multiple-lines
     
    Last edited: Jan 17, 2020