27
2017
Drawing Lines
Hi dear reader! In this tutorial we want to learn how to draw a line in unity by user mouse movement and interaction. First we need a component that would be able to render simple lines. Our choice is Line Renderer, this component is able […]
21
2012
Trajectory Test Scene 2.0
Using trajectory script from unity answers, this is a test for the Rampart prototype.. Would be nice to add the trajectory preview line also (I think I’ve seen that in the forums..) and some randomness or wind? Red target mark is light projector, with custom […]
25
2012
Camera Panning
Testing camera pan (hold button down, pan view..) Actually the code is 99% from here: Angry Spheres.. Current features: – Pan with left mouse button (would be better with middle..or when holding space down) – This is “global panning” (z is locked), not taking account […]
22
2012
X-Ray / CutOut Shader With Mouse
X-Ray (or kind of CutOut) Shader With Mouse (using mousecursor position inside shader, compared with worldPos distance) Interesting effect.. took a while to get transparency working with 2 sided surface shader, always had the problem that faces were drawn in wrong order (back side of […]
8
2012
Object placement & pickup with mouse
Testing.. related to this topic: http://forum.unity3d.com/threads/118581-Placing-object-on-mouse-down Controls: Left mouse button, place object While placing object, hold mousebutton down to keep moving the object With left mouse button, you can pick previously added objects (hold button down to move them) Webplayer: (flash) http://unitycoder.com/upload/demos/mMousePlacementPick1/ Download example scene: […]
28
2011
AngrySpheres (test.1)
Shooting balls by dragging with mouse (click left button down for startpoint and drag away, then release for endpoint) Webplayer: (flash) http://unitycoder.com/upload/demos/mAngrySpheres1/ Download source: mAngrySpheres10.unitypackage
Recent posts
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
- UnityHub: Add support for custom project title (instead of folder name) or use ProductName
- Testing Unity MUSE AI