简体   繁体   中英

Make transparent 3d object with collision detection

I am newbie in unity3d, I just want to make a square area which will should be transparent and when a object enter into that square area or touch that area then I should let know that some object enter or touch area. Kindly let me know or suggest me how can i do this task. This will be great for me. Thanks in advance.

Box collider will work and if you just want to know when they enter click is trigger then in your script have the OnTriggerEnter function to handle your logic

here is a link for unity's colliders http://docs.unity3d.com/Documentation/ScriptReference/Collider.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM