Tip: ExtendedActivateTrigger

marcosecchi Unity3D 0 Comments

Below you can find a simple add-on to the Unity ActivateTrigger in the Standard Assets, made for my students at NABA (who know almost nothing about scripting). The main reason I wrote it was to let them enable od disable a Fungus Flowchart during the OnCollisionEnter and OnCollisionExit callbacks. It is also possible to filter the entering (or exiting) gameobject …

Finding a Script in a Unity3D Scene

marcosecchi Unity3D 0 Comments

A not well-known feature of the search field in the Hierarchy panel of Unity3D let you search all GameObjects including a script. Searching for it is really easy: just insert the full name of the script as shown in the picture below. Pic. 1 – A scene showing all GameObjects including the ActivateTrigger script Note: the search keyword must be …

How to check you are in Play Mode in Unity3D

marcosecchi Tutorials, Unity3D 0 Comments

One of the first things you’ll learn when starting with Unity3D is that, during Play Mode, your changes won’t be persistent and will revert back once you stop playing. This feature has obviously been created to help the developer make changes and tests without affecting the scene. Unfortunately, during your first projects, you’ll forget about this and most of the …