Search Issue Tracker
Fixed
Fixed in 1.8.0
Votes
0
Found in [Package]
1.7.7
1.7.8
1.8.0
Issue ID
UVSB-2381
Regression
Yes
AOT stub generator ignores assemblies that reference Unity editor
h3. Steps to reproduce:
# Open the attached project which has a script graph with a single cinemachine node.
# Build and run the project.
# Examine the Player.log
h3. Results:
There are errors running the game as the method was stripped from the build.
{code:java}
Failed to define GetMember#e5b4c...:
System.MissingMemberException: Member 'Cinemachine.Cinemachine3rdPersonAim.AimDistance' not found.{code}
h3. Expected Results:
We generate the AOT stub and no error occurs.
Here are some recommendations as suggested per Rohit:
# Generate AOT Stubs for all nodes used in all graphs, regardless of their editor / runtime status. This means that yes: Users might be able to put editor only nodes in their graphs that will break their builds, but if:
# (If this is possible) We add good error messaging for when a node causes a bad stub. This would let users remove nodes that cause errors from their graphs
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Add comment