• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Won't fix Atom's "uidWithoutSubscenePath" incorrect when some special characters in SubScene atom uid

everlaster

Well-known member
Featured Contributor
Joined
Aug 9, 2020
Messages
703
Solutions
15
Reactions
3,512
Hi, noticed this issue using my plugin Lumination which depends on the return value of uidWithoutSubscenePath being correct. But an incorrect value might cause issues elsewhere that the function is used as well.

In short if the subscene atom has some special characters (at least + and $ seem to be breaking), Atom.atomUidWithoutSubscenePath returns the whole uid. This is probably due to using Regex.Replace and the $ and + characters in the subscene uid are not escaped so the regex is not matched.
 
Last edited:
Yeah - I'll need to make sure I fix it so uids can't have special characters in 2.X or fix it so it does a regular string match. Unfortunately I won't be able to fix for 1.X.
 
Ok, I'll just work around it in the plugin.
 
Back
Top Bottom