Unity3D cannot trigger a mouse event when importing external task models. unity3d Models
Last few days
During U3D Testing
Imported a character model on the Internet.
However, it was later found that the model could not respond to any issue, such as OnMouseDown.
These mouse events
The test was conducted by a U3D water manager.
Not my system problems found =
The plumber still responds to mouse events.
Baidu
The solution is
In the Project window, select and import the FBX model, and in the Inspector on the right, select Generate coldocumers.
This is because the U3D default imported model does not start the collision machine colcyclers.
But ------
After confirming that the model's Generate colcyclers is selected
Still unable to respond to mouse events
At this time, du Niang is useless...
After the solution is not found online
Try to figure it out.
Thinking about starting the collision Server
Is it necessary to add a physical component?
Go to the Component in the menu bar and find Phsics.
I tried it one by one.
And then find
BoxCollider can be conveniently used in my model.
Therefore, the physical component BoxCollider is added.
The green box on the model after adding it is BoxCollider ~
You can find this component in the Inspector panel on the right.
Then, based on the character model
Adjust its position and size
This is what happens after my model is adjusted.
BoxCollider can overwrite the character model
Then run the test.
Mouse events can finally respond
This is a method of soil developed by myself ~
If there is a more advanced Adjustment Method Please Call Me ~
Zookeeper
Unity3d imports fbx without textures, and the imported obj model turns black. How can this problem be solved?>?
Is your texture format incorrect? Why is obj used? fbx is used to export to u3d. Or you may have no lights in your scenario. Check
How to import the 3dmax model to unity3d without losing the material?
Hello
The max model is imported into Unity3d. Only the model is imported during import.
As for how to import textures, you can try to export the model to the FBX format, and then put the texture file and the FBX model file in the same folder, then you can drop it into Unity3D. Do not use Chinese characters for the Paster name. Otherwise, Unity will not recognize the Paster name.
Try it first. I hope it will be useful to you.