I have to create a sample silver-light page that has some user interactive elements like -
1) A ball and two arrows for left and right directions.
Clicking on any arrow should cause the ball to move in that direction.
2) A drag and drop functionality for some object on the screen.
3) Clicking on a ball should make it rotate.
Please help me as i m new to this area.
Thanks in advance.
You can use the Animations using xaml
If you have the Microsoft Blend then it is very easy to animate
example
Related
As you can see in my Unity scene
it looks dark.
game tab
you can see here that it's dark.
I've done going to window > render > lightning > clear baked data but its still the same.
Any unity devs can help me, thanks
As you can see in my lightning tab
auto generate is disabled so I can't check it to verify if it can solve my problem.
Somewhere in the Canvas you have an object that has a sprite on it where the color is modified. Also check the alpha setting for the colors there.
Lighting doesn't affect UI elements like that. That only applies to non UIElements like 3D and 2D objects placed in the world (https://docs.unity3d.com/Manual/LightingInUnity.html).
So it's just a sprite that is causing this background color as #Çağatay IŞIK suggested.
I've got a scene for a dynamic menu, where I'm trying to make the camera move between the canvases (menu entities in this case) when a button is pressed. How can I make it move to another canvas space using four canvas corners so the camera's field of view can attach itself to these four corners. P.S. I'me pretty new to Unity, don't be too judgy.
Something like this plan.
Menu Layout
Thanks in advance!
As far I have understood, you can set the Canvas Render Mode to World Space from the inspector.
Then you can position the Canvas position as your wish.
Please see the attached images.
I am trying to make a VR game with google cardboard in unity. However we can not find a way to display score text right in front of the player. However when I add 2D text it is only on one side and therefore on one side of the eye and getting the position right for 2 texts is hard. If I use 3D text and set in front of the players position I think it will go into the wall if a player hits one. Is their any way to display a score on google cardboard / Unity VR.
You can either use native Unity Canvas UI or Googles hack to render OnGUI calls onto a texture.
I would definately recommend Canvas as that is the way Unity is working on their UI features, and it has much better layout capability.
To use canvas, Right click in the hierarchy and add UI->Text. You will automatically get a canvas. The important part is set the canvas to world-space (not screen space overlay). Then drag the canvas game object so it is a child of the Google Cardboard Main head object. Scale it down (like x:0.001,y:0.001,z=0.001) because by default it will be massive. To avoid going through walls position it about 0.5m in front of the camera - within any collider you may have.
there is another approach as well which you can place that canvas under camera make it world space, and then adjust it as you want, after that where ever you look at it will be seen easily ( as suggested by earlier user in answers) as you can see below in picture i placed canvas > Text > under camera which i used for oculus/ google camera
I would like to know the coordinates of the point in the HelixViewport3D where I clicking.
My task is:
1) RectangleVisual3D as some surface.
2) Clicking on this surface adding 3d-object under mouse pointer.
I found =>this<=, but could not develop the idea further.
Thanks for help :)
I have a C# control that has an scroll.
When a user drag and drop, the scrolls are updated. I would like to animate the drag&drop movement like google maps does. The movement is smoothly animated.
What technique must I use if want to simulate a swipe in the control, and perform a smoothly animated?
What I was looking for was the easing equations: http://www.gizma.com/easing