Giter Site home page Giter Site logo

Comments (10)

yahiaetman avatar yahiaetman commented on July 23, 2024

Do you use Managed Stripping?
The code relies on reflection during the initialization step to create an instance of each effect renderer in the list.
There are no other reference to the effect renderers in the code that would protect them from being stripped out.

So if you have managed stripping enabled, could you either:

  • Disable it and try?
  • Use the [Preserve] attribute on the effect renderers that you want to keep.

Could you try and see if this works?

from urpcustompostprocessingstack.

MeatG avatar MeatG commented on July 23, 2024

Hi,

Thanks for the quick answer! Managed stripping has been disabled all the time. Should I still try the Preserve attribute?
If so, where exactly should I apply it?

Could the depencies of the package(.json) affect this?

from urpcustompostprocessingstack.

MeatG avatar MeatG commented on July 23, 2024

And what would be the difference between development build and normal build in this regard?

from urpcustompostprocessingstack.

yahiaetman avatar yahiaetman commented on July 23, 2024

I think it is worth trying. I am currently trying it on Unity 2020.3.4 on my machine.
I believe Unity builds the project in debug mode for the development build.

from urpcustompostprocessingstack.

MeatG avatar MeatG commented on July 23, 2024

I think it is worth trying. I am currently trying it on Unity 2020.3.4 on my machine.
I believe Unity builds the project in debug mode for the development build.

FYI, I tried both 2020.3.4 and 2020.3.5 - both have the same problem

from urpcustompostprocessingstack.

yahiaetman avatar yahiaetman commented on July 23, 2024

Ok, the build finally finished.

I tried it without adding the [Preserve] attribute and it still worked fine for me.

I built it on Windows 10 for Window x86_64.
My Player Settings:

  • Scripting Backend: IL2CPP.
  • Api Compatibility Level: .Net 4.x
  • C++ Compiler Configuration: Release.
  • Use Incremental GC: No. (Edit: I don't think that this would matter)
  • Managed stripping level: Low.

My Build Settings:

  • Development Build: No.

Is your settings different? If yes, what is the difference?

from urpcustompostprocessingstack.

MeatG avatar MeatG commented on July 23, 2024

-I made a new project: Works
-Tried your settings in my project: Not working
-Made a completely new scene to my project with only one effect active: Not working

So there is something strange going on on my end... I have been chasing this bug in my code and settings for quite a long time before posting here. No idea what to do next :D

from urpcustompostprocessingstack.

yahiaetman avatar yahiaetman commented on July 23, 2024

Is it possible for you to send me the new project to try it on my machine?

from urpcustompostprocessingstack.

MeatG avatar MeatG commented on July 23, 2024

Got it!!

I have a big project with many years of development so it is not always easy to find problems - BUT I finally did find it!
It was a code obfuscator asset I was using.

Thank you so much for your help, anyways. Give me your PayPal -address so I can buy you a beer. :)

from urpcustompostprocessingstack.

MeatG avatar MeatG commented on July 23, 2024

In the obfuscator, there was an option set to NOT obfuscate development version so that was the 'strange' thing

from urpcustompostprocessingstack.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.