Skip to content

Mics Utilities For Unity and different utility classes for my other packages to work with.

License

Notifications You must be signed in to change notification settings

Paulsams/MiscUtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiscUtilities

Different utility classes for my other packages to work with.

Add to project:

To add this package to the project, follow these steps:

  1. Open PackageManager;
  2. Select "Add package from get URL";
  3. insert this link https://github.com/Paulsams/MiscUtilities.git

Dependencies

Additional tips

If you do not have a name conflict with my utilities, then you can make my namespace be added to the script automatically:

  1. Create a folder "ScriptTemplates" in the root of the project;
  2. Create a file with the name: "81-C# Script-NewBehaviourScript.cs";
  3. And replace all the text in it with this text (one tab before #ROOTNAMESPACEBEGIN# is required):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Paulsams.MicsUtils;

    #ROOTNAMESPACEBEGIN#
public class #SCRIPTNAME# : MonoBehaviour
{
    
}
#ROOTNAMESPACEEND#

Different Custom Editors

  1. GameObjectLayer is a structure that allows you to select a layer in the inspector without bit shift operators, that is, for comparison with GameObject.layer;

image

  1. ReadonlyField is an attribute so that you can see the value in the inspector, but not change it (but, as I understand it, it only works on non-custom types that do not have their own PropertyDrawer. And I think this because the custom PropertyDrawer redraws what ReadonlyAttribute called).

image

  1. IgnoreAttribute - allows you to ignore the field itself and immediately draw all child fields.

image

  1. ShowUnityObjectAttribute - allows you to draw a dropdown inside which the UnityEngine.Object fields will be drawn.
    For example: ScriptableObject.

image

Scripting API

To open scripting API documentation, follow this link.

About

Mics Utilities For Unity and different utility classes for my other packages to work with.

Resources

License

Stars

Watchers

Forks

Languages