Dynamic Right Click Menu System ($3.50)

Known Bug
Just found and fixed a bug were the canvas mode of camera space was not positioning the menu correctly. Rather than restarting the long initial review process I have decided to wait and release the fix as the first update.

If anyone needs it sooner feel free to drop me a message with your invoice number and I can send the fix


Welcome to the forums for the Dynamic Right Click Menu System!

Web Demo: https://dl.dropboxusercontent.com/u/29289192/Right Click Menus/index.html
Documentation: https://dl.dropboxusercontent.com/u/29289192/Right Click Menus/Documentation.pdf

Any issues feel free to drop us a message :slight_smile:

Cheers!
Jason

Hello I use your right context menu, and I’m a new user of unity3d, I create a blank 3D project, and add a cube in the scene, on the cube I add your K2 Example ExampleMenu.cs in folder of “K2 Games\Context Menus\Examples” then set the parameter prefab with the “Context Menu.prefab” but when I run the demo, can’t see the right click context menu.

My Unity3D version is 5.3.5f1, wish your response , thanks

my email mygiswork@163.com, thank you

Hey sosoname,

Not quite! You need a canvas for your UI and then you drag in the prefab of the context menu onto it. Quickest way to see it in action is to load the example scene which is called Main and is within the ‘Context Menus’ folder.

Anyway I didn’t intend this pack to work in 3D space but its very easy to make sure it does. You just need to continue the raycast as per the example until it hits whatever object you have in mind :slight_smile:

I might put together some examples tonight but I try to avoid working on the weekends, if I don’t then i can tomorrow night for sure.
Cheers!
Jason

Hey Laireon Games
I was just wondering if there is a way to make the left and/or right cube scripts work with 2D sprites instead of 3D objects.

Thanks
Lucas

Hey Bigtoast,

Bit confused by your question, might be in the wrong package! I don’t think there are right/left cube scripts as a part of this package :confused:

This package currently works on UI elements

I attached a picture of the left and right cube. When you say do you mean any kind of UI element like a Raw Image?

Ohhh right sorry I forgot I did that :smile: I will need to load up and take a look to remind me of that code.

Bit busy at the minute but will take a look over lunch or tonight after work

Sounds great, thanks for replying so quickly!

1 Like

Ah right yeah that ‘should’ translate to anything with a collider on it. So if you stick a collider and the same script on a sprite it should open the menu.

All this is doing is hooking into the OnMouseDown method of Unity but you can open it any way you like

Thankyou very much!

Lucas

I want start by saying thank you for this great asset it has saved me a lot of head aches so far. I am having an issue with how you are determining the size of the context menu though.

I would like to have the width be driven more dynamically. Currently no matter what I set up with regards to content size fitters or layout groups it will always be the same size as the initial prefab. I know this is being affected by the FinaliseMenu() function but can’t seem to get around it to get my text to fit. Is there anywhere else that you are controlling the size?

I was able to solve my problem. Took a little reworking of the source to support dynamic horizontal resizing. Once again great application!

Awesome, glad you got there and sorry I wasn’t around to help this time :slight_smile: