Browsing articles in "Unity3d"
Aug
23
2013

CustomPropertyDrawer in C#

Unable to find any complete _and_ working basic C# example of custom propertyDrawer usage.. Oo? (adding some example here once I find/get it working..) Resources: – Intro on PropertyDrawers : http://blogs.unity3d.com/2012/09/07/property-drawers-in-unity-4/ (but getting lots of errors from those samples.. “The type or namespace name `Popup’ […]

Aug
20
2013

Unity Docs MiddleMouseButton New Tab

Unity “broke” the documentation in some update..cannot middle mouse button click them to open in new tab.. http://forum.unity3d.com/threads/193569-Script-documentation-doesn-t-allow-opening-links-in-new-tab-%28ctrl-or-middle-click%29 While waiting for the fix here’s small GreaseMonkey plugin userscript (firefox) : – It fixes the links for middle mouse button (so that they open in new […]

Aug
11
2013

Scorched Earth Terrain (wip)

This is another thing that i’ve always wanted to try in Unity, Scorched Earth deformable collapsing terrain (youtube link). Ideas: 1 – Using SetPixels() with texture would most likely be easiest, just slow on bigger resolutions (but no need high resolution for this anyways?) 2 […]

Aug
8
2013

[AssetStore] Scene Object Isolator

This one got just accepted, small helper utility. “Isolator” is a simple Unity editor plugin for isolating the selected object(s) (by hiding others). ReadMe: (pdf) README_Isolator1_web.pdf *Edit: Works in GAME vindow, not in SCENE view (seems like it would need some manual redraw or update […]

Aug
7
2013

Procedural Tree Mesh Generator (wip)

Small test for doing procedural trees.. (screenshot showing trunk with resolution 8 and 5 sides..) Current features: – Trunk creation: adjustable height, height segments, resolution (amount of “sides”) – Using quads – Perlin noise rotations for trunk direction – Adjustable root segment radius multiplier (so […]

Aug
6
2013

Fake Realtime Shadows With Surface Shader (v2.0)

New realtime dynamic super version of the “Fake Realtime Shadows With Surface Shader“! Webplayer: http://unitycoder.com/upload/demos/FakeShadowShaderUnity/ — Image#2: Purpose was to make 2D shadow casting..but resolution is not good enough.. — Image#3: Or actually DX11 (#pragma target 5.0) gives extra ‘power’:

Aug
5
2013

FOV Using Recursive Shadowcasting

Converted this script to unity: FOV Using Recursive Shadowcasting, for a quick test.. Instructions: – Attach the script to a plane – use Unlit/Texture shader as material (then no need lights..) – Move main camera so that it sees the plane TODO: – Use this […]

Aug
3
2013

2D Grid Fake Shadow

Using the same code from previous 2D Raycasting Visibility Voxel Travelsal, but added dynamic grid array update (using screenshots..), so now the walls (obstacles) are updated realtime on the 2D grid. FEATURES: – Converted the whole thing to C# – Any object visible to camera can […]

Aug
2
2013

Poor man’s Mesh Exploder

Always wanted to try making exploding meshes, finally had time for a small test version.. Info – Shortcut to easy mesh (fake) destruction: Take each face, Create small 3D mesh piece for it (extrude/add vertice(s) backwards from face normal), Add rigidbody, Done! – Used this […]

Aug
1
2013

Testing OnParticleCollision()

Testing the new 4.2 feature, shuriken particle collision event: http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnParticleCollision.html Collision event returns info from particle: Collider, intersection, normal, velocity http://docs.unity3d.com/Documentation/ScriptReference/ParticleSystem.CollisionEvent.html Features: – Tried to make the spray look like water..but that didnt work out yet.. – Particles hit the plane, and fire that OnParticleCollision […]

Pages:«1...27282930313233...49»

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.