Extension Methods
From Unify Community Wiki
(Difference between revisions)
(→C#) |
Isaiah Kelly (Talk | contribs) m (Updated page links and improved text.) |
||
Line 19: | Line 19: | ||
|} | |} | ||
− | Extension methods extend | + | Extension methods extend functionality of existing types. |
− | |||
*[[EditorGUIExtension]] - Some extensions to make coding the GUI for utilities/custom inspectors easier. | *[[EditorGUIExtension]] - Some extensions to make coding the GUI for utilities/custom inspectors easier. | ||
− | *[[ | + | *[[Enum.TryParse]] - Provides an instance TryParse method for enumerations. |
− | *[[GenericMenuExtensions]] - | + | *[[GenericMenuExtensions]] - Allows you to cleanly add items to GenericMenu instances using chained method calls. |
− | *[[GetOrAddComponent]] - Simple | + | *[[GetOrAddComponent]] - Simple extension to save 2 or 3 lines of very redundant and ugly code. |
− | *[[IsVisibleFrom]] - | + | *[[IsVisibleFrom]] - For checking if a Renderer is rendered by a specific Camera. |
− | *[[LayerMaskExtensions]] - | + | *[[LayerMaskExtensions]] - For manipulating and debugging LayerMasks. |
− | *[[QuaternionExtensions]] - | + | *[[QuaternionExtensions]] - Provides a few useful extensions to the 'Quaternion' struct. |
− | *[[TextureFloodFill]] - Two | + | *[[TextureFloodFill]] - Two methods for Texture2D which allows you to perform a floodfill operation on the texture. |
|} | |} | ||
− | |||
− | |||
[[Category:.NET Plugins]] | [[Category:.NET Plugins]] | ||
[[Category:Native Code Plugins]] | [[Category:Native Code Plugins]] |
Revision as of 20:16, 7 February 2019
Plugins | Extension Methods | Packages |
Extension methods extend functionality of existing types.
|