Help create Obi handle on script at runtime - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: Help create Obi handle on script at runtime (/thread-1197.html) Pages:
1
2
|
RE: create Obi handle on script at runtime - Richard - 24-05-2019 (24-05-2019, 03:06 PM)josemendez Wrote: Hi,Hello. It is for a game/application. RE: create Obi handle on script at runtime - josemendez - 24-05-2019 (24-05-2019, 03:40 PM)Richard Wrote: Hello. Then, use Unity's UI. See: https://unity3d.com/es/learn/tutorials/s/user-interface-ui RE: create Obi handle on script at runtime - Richard - 24-05-2019 (24-05-2019, 04:05 PM)josemendez Wrote: Then, use Unity's UI. See: How can I choose mesh to edit particle? RE: create Obi handle on script at runtime - josemendez - 24-05-2019 (24-05-2019, 04:16 PM)Richard Wrote: How can I choose mesh to edit particle? Hi, Do you mean in-game? Well, it entirely depends on how you want to design your interface. You could have a list of all meshes and let the user select it from the list, or let him click on the scene and then raycast against all objects in your scene. There's many ways to do it. RE: create Obi handle on script at runtime - Richard - 24-05-2019 (24-05-2019, 04:32 PM)josemendez Wrote: Hi, in-game means that I don't want to choose particle at runtime on edit particle of obi cloth/ obi tearable cloth, and "have a list of all meshes and let the user select it from the list" is ideal for me. RE: create Obi handle on script at runtime - josemendez - 24-05-2019 (24-05-2019, 04:40 PM)Richard Wrote: in-game means that I don't want to choose particle at runtime on edit particle of obi cloth/ obi tearable cloth, and "have a list of all meshes and let the user select it from the list" is ideal for me. Ok. This is something that isn't even remotely related to Obi, so I'm closing this thread. There's tons of resources on how to create lists using Unity's UI, I encourage you to learn how to work with UI components. |