Search Unity

Question Triggering SubScene Conversation with SO

Discussion in 'Entity Component System' started by RoughSpaghetti3211, Nov 13, 2020.

  1. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    I was wondering if someone could help me out. I have a subScene with a GO and a SO as one of the fields. When I change a value on my SO the conversion does not trigger. Is there something i need to do for the SO to get tracked?
     
  2. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    238
    The magic I think you're looking for is:
    conversionSystem.DeclareAssetDependency(gameObject, yourSO);

    Which you do when your GO is converted. Hope that helps!