VS this:
I think itās ābetterā to use the NPM package since you can easily regenerate them. Not exactly sure, but thatās how i add logic majority of the time.
Can you check the ComponentGenerator in your scene (on ExportInfo) if it says something like that itās inactive?
If yes/no try enabling/disabling it, re-saving your typescript and focusing Unity again
it looks alright
by user 263967078346653697
its active
by user 263967078346653697
Do you see a log in the console when you save your ts file (and focus unity)?
no, its like justā¦nothing happens
by user 263967078346653697
no errors
by user 263967078346653697
its just ignored
by user 263967078346653697
I duplicated this code chunk and added the script on a Prefab (Prefab is a .glb in my example) in the Hierarchy in Unity. It works here. Each Prefab child I click on gives itās name.
```const results = this.context.physics.raycast();
// First clicked object
console.log(results[0].object.name);
// All clicked objects
results.forEach(result => {
// console.log(result.object.name);
});```
by user 276719669878980608
