Browsing articles tagged with " script"
Nov
18
2021

Run Unity Cloud Build based on Github Commit message using Github Actions

This should had been easy, but unity cloud build system has every secret id hidden in different places and using different names.. Create github action (click Actions from your repository) click “Skip this and set up a workflow yourself” copy ready to use script from: […]

Jul
7
2020

Find out which script Disabled or Enabled this GameObject?

Small script to help tracking who disabled or enabled gameobject,https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Helpers/Debug/WhoDisabledOrEnabled.cs Usage:– Add script to the gameobject you need to track– press play– see console for the error messages, select the error message row, and see stack trace for the calling script names and lines.

Jun
8
2019

Set Quad Scale to Match VideoPlayer Aspect Ratio

Needed quick videoplayer quad mesh resizer, to match video size, so here’s a small editor helper script:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs It checks video width and height, and then scales transform Y axis to match aspect ratio.

Oct
29
2017

Visual Studio Snippet Generator Online

Didn’t find any easy or working snippets generator for VS, so made one with javascript: New page: http://tools.unitycoder.com/VisualStudioSnippetsGenerator/   Collecting some useful snippets here *currently just 1 there : ) https://github.com/unitycoder/UnityVisualStudioSnippets Feel free to post ideas for most common snippets.. personally i’d like to add […]

Jul
12
2017

Editor Plugin: Paste Script To File

Small editor script to easily paste full script into new file in project. (instead of having to manually create new script file, opening it, pasting contents to it, renaming file etc..) Usage – Download CopyPasteHelper.cs script from https://github.com/UnityCommunity/UnityLibrary/blob/master/Scripts/Editor/Tools/CopyPasteHelper.cs – Place it under Editor/ folder in […]

Oct
7
2016

Adding Custom Script Templates

Adding custom script templates is quite simple: – Create your custom script – Replace all class name strings with #SCRIPTNAME# (this will get replaced by the new created script name) – Move the script file under your unity installation folder: \Unity\Editor\Data\Resources\ScriptTemplates\ – Rename “YourScript.cs” into […]

Dec
3
2015

UI Text TypeWriter Effect [Script]

Quick & simple UI text typewriter effect (displays UI text 1 character at a time) Assign to UI text component, it grabs the text from it at Awake() and clears it, then starts to type out the text 1 character at a time. This file […]

Nov
4
2015

Leap Motion: Get Finger Position & Direction

Took a while to find info on how to simply get the Leap hand finger positions in unity, here’s cleaned up script to draw rays from fingertips to their pointing direction.   This file contains bidirectional Unicode text that may be interpreted or compiled differently […]

Jun
2
2015

Dolly Zoom Effect

http://en.wikipedia.org/wiki/Dolly_zoom This version only works when target is directly at front (towards z), also viewWidth is manually given..(see for formula on that wikipage) Source: (attach to camera) This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To […]

Dec
24
2014

Mobius strip Mesh Generator

^Current results.. drawn with Debug.Drawline() for now.. Trying to create möbius strip mesh using a script.. Founded some formulas here: (and it even has .obj exporter, but rather do it inside unity..) http://www.java2s.com/Open-Source/CSharp_Free_Code/3D/Download_Helix_3D_Toolkit.htm  TODO: – Build mesh (möbius strip) ** Well there is now better […]

Pages:12»

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

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.