Updated by
Snippets
Updated by
Modified
Otto.cs- Ignore whitespace
/// Separate your search terms with an underscore, and being as specific as possible with your variable names helps Otto to find the right assets
/// Example: "Optimistic Unicorn.mp4" can be found with variable names "Optimistic", "Unicorn", or best of all: "Optimistic_Unicorn"
+ return (!type.IsSubclassOf(typeof(MonoBehaviour)) && !type.IsSubclassOf(typeof(Behaviour)) && type.Name != "GameObject");
Updated by
Modified
Otto.cs- Ignore whitespace
- /// Loops through all public fields on the target mono behaviour and searches for a relevant asset in the asset database
- /// Separate your search terms with an underscore, and being as specific as possible with your variable names helps Otto to find the right assets
- /// Example: "Optimistic Unicorn.mp4" can be found with variable names "Optimistic", "Unicorn", or best of all: "Optimistic_Unicorn"
+ /// Loops through all public fields on the target mono behaviour and searches for a relevant asset in the asset database
+ /// Separate your search terms with an underscore, and being as specific as possible with your variable names helps Otto to find the right assets
+ /// Example: "Optimistic Unicorn.mp4" can be found with variable names "Optimistic", "Unicorn", or best of all: "Optimistic_Unicorn"
Updated by
Created by
Added
Otto.cs- Ignore whitespace
+ /// Loops through all public fields on the target mono behaviour and searches for a relevant asset in the asset database
+ /// Separate your search terms with an underscore, and being as specific as possible with your variable names helps Otto to find the right assets
+ /// Example: "Optimistic Unicorn.mp4" can be found with variable names "Optimistic", "Unicorn", or best of all: "Optimistic_Unicorn"
- 1
- 2
You can clone a snippet to your computer for local editing. Learn more.