Ludovico Posted December 15, 2020 Share Posted December 15, 2020 (edited) I imported a model and gave it a script. It works and appears during the run. I cloned that node, and it works too. Now I took one of the clones and made it a node ref. As expected, it does not appear during play. However, when I instance the ref, it does not appear during play, with my script or without. I think I'm missing a concept? Edited December 15, 2020 by Ludovico typo Link to comment
StockySpark Posted December 15, 2020 Share Posted December 15, 2020 Hello, Ludovico How do you instantiate the node reference? Do you drag and drop it to the world in the Editor or you use Load() method from the code? Link to comment
Ludovico Posted December 16, 2020 Author Share Posted December 16, 2020 I dragged the .node resource into the scene. I also tried right click->clone on the reference. Same result: the new instanced node (from a reference) appears in the editor but does not appear during play. It has to be something basic I glossed over? Link to comment
Ludovico Posted December 17, 2020 Author Share Posted December 17, 2020 (edited) What worked is I put the .node reference always under another node, not directly into the world. In other words, I wrapped each node reference. No big deal I suppose, but I thought I was essentially following the instancing demo by cloning top-level reference nodes. Are we sure all these vans would appear? UPDATE: If I turn the the node that wraps the reference into a reference, then that top-level wrapper reference can be instantiated like the demo above. It's a bit perplexing, but works. Edited December 17, 2020 by Ludovico vid link Link to comment
StockySpark Posted December 17, 2020 Share Posted December 17, 2020 Hello. Could you please send us your project? We'll have a look at the setup. Link to comment
Ludovico Posted December 17, 2020 Author Share Posted December 17, 2020 @stockysparkI can try to setup a basic scene with the issue later; I have too much terrain in this project to send. 2 Link to comment
Recommended Posts