Browsing articles in "tips"
Oct
21
2016

How to enable unsafe keyword for Unity C#

Enabling “unsafe” for unity c# is quite simple: – Add these 2 files to your project folder (inside Assets/ folder root) – “smcs.rsp” and “gmcs.rsp” – both files contain only 1 line of text: -unsafe – Then restart Unity and VisualStudio/Monodev *Note: Unity 5.5 wants […]

Oct
16
2016

[Script] Display Version Number in UI Text

Small script for displaying current app version number from Player Settings in UI Text component. *seems to work in Android, not ios..?   Source: (Attach to UI Text component) https://github.com/UnityCommunity/UnityLibrary/blob/master/Scripts/Helpers/Version/GetVersion.cs

Sep
28
2016

Add Custom Explorer Context Menu Item for Opening a Folder as Project with Unity

You can add custom context menu items into Windows Explorer (more info), so you can create custom menu item that opens the current folder as a project in Unity. (it will still warn you about project version if its different) Example RegEdit file: *Note! you […]

Aug
9
2016

Shader Z-Fight Offset

(screenshot with Quad mesh placed on top of Plane with raycast hit.point) If you want to use Raycast hit.point to place quad on a flat surface, it will most likely create Z fighting issue.. You could add position offset by hit.point+Vector3(0,0.1f,0), Or use modified shader […]

Aug
4
2016

Shader error: cannot map expression to vertex shader instruction

Had a strange looking error today: Turns out it was just that the function which was called inside vertex shader, was below the vertex shader, so just moved it above the v2f vert (appdata v) and it works.. *Actually it was more complicated: This one […]

Mar
8
2016

Best Unity Github Repositories [+giveaway]

List of best public GitHub repositories: IMAGE EFFECTS Image effects collection – https://github.com/makoto-unity/OneStepEffects Filmic Tonemapping – https://github.com/kode80/UnityEffects SSAO – https://github.com/keijiro/KinoObscurance Bloom – https://github.com/keijiro/KinoBloom SMAA – https://github.com/Chman/SMAA-Unity Screen water drop, Blur, Oil Paint, Pixel, Color- https://github.com/QianMo/Awesome-Unity-Shader ANTIALIAS Temporal Reprojection Anti-Aliasing – https://github.com/playdeadgames/temporal Subpixel Morphological Antialiasing (SMAA) […]

Dec
26
2015

Useful Settings for Visual Studio 2015 + Unity

Finally installed VisualStudio with unity, 2015 community edition (update 1) seems pretty good so far (new monodevelop was too bugged..) Here’s some common settings to go look for when customizing the vs editor. — SOURCE CODE MINIMAP Quick launch command: scroll bars (select text editor […]

Nov
18
2015

Surface Snapping in Editor

These snapping features are super useful! Note that if you have “Pivot” enabled instead of “Center”, it snaps from the center of the sphere instead. Surface Snapping While dragging in the center using the Translate Tool, you can hold Shift and Control (Command on Mac) […]

@unitycoder_com

Subscribe to Blog via Email

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