question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

github_iconTop GitHub Comments

Vanitcommented, Sep 12, 2017

Matcher definitely doesn’t work with subclasses, but that’s a slightly different usecase to the one I wanted to solve, which seems to be solved already as I must’ve done something dumb like put the wrong class name in the <>.

0reactions
Vanitcommented, Sep 26, 2017

@0xFireball Yep, it is. Should’ve closed this issue after my last comment, my bad. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using GetComponent on a base class? Some other solution?
I'd check whether something else was actually happening there, since calling GetComponent with a base class should find subclasses.
Read more >
Does GameObject.GetComponent() find sub classes?
Well, I haven't tried a three-level hierarchy but, for two, I can confirm that GetComponent works as you expect.
Read more >
Interact with inheriting class methods from "casted" base ...
1 Answer 1 ... In Unity, I'd generally recommend working with the principle of composition over inheritance. In this case, if player characters, ......
Read more >
What are some bad practices to avoid when using Unity?
Thought it would be interesting to start a discussion of what practices might/should be avoided when using Unity, both in…
Read more >
Scripting API Changes in Lens Studio 2.3 - Docs - Snap Inc.
In Lens Studio 2.3, it is now easier to access components on a scene object. To get a component, you can use getComponent()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found