poly
Refugee
Thanks for taking the time to go through your own process with Unity, really appreciate it!!!Okay, here's what generally works for me in bringing new blocks in from Unity.
1. I put my meshes and textures in a folder in Assets, set up my materials in the same folder, etc.
2. I create a new GameObject in the Hierarchy panel, and make sure that the values are reset to 0, 0, 0. Let's call it Tree_New_1_prefab.
3. Name the new GameObject what you want you'll be calling from xml. Nothing that you do to this top level GameObject will carry over into 7D2D, I believe.
This has been my downfall more than once. If you scale your model on this level, it will look fine in Unity but be unscaled when you place it in 7D2D (it will, however, appear in the expected size until you complete placing it--sound familiar?) If you tag this level with T_Mesh_B, you still won't be able to interact with it in 7D2D, even if you put a collider on it.
4. Drag a copy your model from Assets and put it into your new GameObject. This model/subfolder is where you have to do all your scaling, attach your collider, and put your T_Mesh_B tag.
5. If you want a differently scaled version of the same tree, make a duplicate of the GameObject, rename the new GameObject to Tree_New_2_prefab, and do the scaling on the model/subfolder. Rinse and repeat until you have your 4 versions of the tree.
6. At this point, I usually create an empty folder in Assets, say "Finished Trees," and drag the four GameObjects into it, one at a time. Select the four GameObjects in "Finished Trees," right click, and export. Name your file something like "MyTrees.unity3d"
7. Define your new blocks in the blocks.xml, and call them with
<property name="Model" value="#@modfolder:Resources/MyTrees.unity3d?Tree_New_1_prefab"/>
and so on, for Tree_New_2, 3, and 4.
That's always worked for me. Hope it works for you, too.
I tried the method you use and sorted out the scaling issue - thanks!
However, the interaction issue in-game still persists. So, as things are, I can place the blocks in the game and they appear as I want them to appear - if I approach them I can't walk through them so the tagging appears to be working.
But I punch it and nothing happens - it's as if I'm punching air. Hitting it with anything, chainsaw, axe etc is the same - it's as if it's not there.
As a test I replaced only the model line in the xml with another block which I use - the block of another tree used from a different mod which I use for testing. It works when I do that - so I know it's not an xml problem.
I have no idea what else to try!!!
For what it's worth the palm tree model I'm trying to use is one from this free asset