Search Unity

Prevent code stripping

Discussion in 'Cinemachine' started by faolad, Jun 8, 2019.

  1. faolad

    faolad

    Joined:
    Jan 27, 2013
    Posts:
    118
    Need help Adding Cinemachine to my link.xml file
     
  2. mike-voorhees

    mike-voorhees

    Unity Technologies

    Joined:
    Aug 9, 2016
    Posts:
    45
    Have you taken a look at the "Link XML" section of https://docs.unity3d.com/Manual/ManagedCodeStripping.html ?

    If you still need help please elaborate on what issue you are having. For example, what have you tried adding to the link xml file? Do your additions appear to not do anything? Do your additions cause the build to fail due to a crash in UnityLinker?
     
  3. faolad

    faolad

    Joined:
    Jan 27, 2013
    Posts:
    118
    I'm trying to migrate a project into the new addressables system. And I'm having issues with stripping in general. I try using the link file, but the additions don't seem to do anything. What seems to work is having a scene build in Player with an object with references to the classes I'm gone bee using. But even that doesn't work with all things. I'm struggling especially with StateMachineBehaviour , can't manage to make it work. keep getting null reference exception errors.
     
  4. LinaEagle

    LinaEagle

    Joined:
    Mar 15, 2018
    Posts:
    6