Skip to content

Settings and activity

1 result found

  1. 1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment

    Thanks Max -- with the project I can at least describe what's happening for you, but I'll have to go to the team for ideas on how we might improve things.

    What's happening is that the system sees them as two versions of the same Component -- likely because you created "Script3" via right click -> Duplicate. The system then sees these as two versions of the same, so it's like you did `UIButton.getTypeName()` with UIButton 1.0 and received an instance of UIButton 1.1. You can see the Component UID in the meta file for your scripts. Both Script1 and Script3 have:

    > ComponentUid: 41ded320-cc7d-4b9f-9e13-3ab8a0332b75

    It's definitely not helpful in this context and we'll think through how to improve things, but to mitigate impact you can either change the ComponentUid in the meta file or avoid "Duplicate" when creating new TS files.

    An error occurred while saving the comment

    Hey Max, can you provide an example? We took a look at both the runtime implementation and the TS compiler and don't see the issue you're highlighting.