-
Notifications
You must be signed in to change notification settings - Fork 855
Add missing DisallowMultipleComponent attribute in AdditionalData components #5859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing DisallowMultipleComponent attribute in AdditionalData components #5859
Conversation
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. HDRP Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
2ada214
to
4c6620f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check also the Camera?
LGTM :)
4c6620f
to
237a5f1
Compare
* Add missing DisallowMultipleComponent attribute in AdditionalData components #5859 * [HDRP][Path Tracing] Slight robustness improvement for sample rescaling #5800 * recaptured reflection probes, updated normals on 2nd room's floor (#5873) * Hair Documentation Pass (#5868) * Hair Documentation Pass * Add the images * Apply various feedback to the documentation * Fix small typo * Update the OSX reference image (forgot to add it previous PR, causing failure) and rerun Yamato * Update the tooltips * [HDRP] Remove Fake GTAO bounce on the occlusion when used for direct lighting #5836 * Update 5014_VolumetricCloudsBanding.png * Update 2307_Shadow_VeryHigh.png Co-authored-by: Arttu Peltonen <77337829+arttu-peltonen@users.noreply.github.com> Co-authored-by: Emmanuel Turquin <emmanuel@turquin.org> Co-authored-by: pierre-unity <39901544+pierre-unity@users.noreply.github.com> Co-authored-by: John Parsaie <johnpa@unity3d.com>
Purpose of this PR
Fixes https://fogbugz.unity3d.com/f/cases/1365879/.
AdditionalData components are associated with components that themselves only allow one instance of the component per gameobject (Camera, Light and Reflection Probe) . Therefore the AdditionalData components need to follow the same rule - the attribute was missing from
HDAdditionalReflectionData
andHDAdditionalLightData
, so this PR adds them.Testing status
Checked that after the fix, you can no longer add multiple instances of these additionaldata components via "paste component as new".
Also I checked that the attribute were already present for
HDAdditionalCameraData
component, as well asUniversalAdditionalCameraData
andUniversalAdditionalLightData
. Therefore this should be low risk.