Skip to content

MertBalkan/UnityReferenceReminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityReferenceReminder

For Unity3D in C# written simple null object reference finder.

About

  • This property drawer helps you to manage your null reference type objects. Especially helpful for fast reference assign from inspector.
  • Useful for Game jams.
0808.mp4

Installation

At the installation part, you can download this package using Unity's Package Manager.

  • Firstly, click the Code button of this repository

Screenshot 2023-08-08 194641

  • After that, copy the path of this package.

Screenshot 2023-08-08 194735

  • Then, go to Unity Editor/Window/Package Manager path from your editor.

Screenshot 2023-08-08 194842

  • At the package manager, click the + icon then select the Add package from git URL... section.

Screenshot 2023-08-08 194954

  • After selecting that option, now you can paste the git path to here and press the Add button.

Screenshot 2023-08-08 195040

  • Finally, you have successfully added this package to your project!

Screenshot 2023-08-08 195147

Usage

  • For using it just add [RefReminder] attribute to your reference type fields.

Example:

using UnityEngine;

public class ReminderTest : MonoBehaviour
{
    [RefReminder("Scene assign")] public GameObject reminderTest;
    [RefReminder("Doesn't matter whether assigned or not!")] public GameObject reminderTest1;
    [RefReminder] public GameObject reminderTest2;
    
    public string mString;
    public float mFloat;
    public int mInt;
}

You can also add comments to leave a message to yourself:

[RefReminder("Message 1")]
[RefReminder("Message 2")]

Screenshot 2023-08-08 200209

License

This code is released under MIT license. Modify, distribute, sell, fork, and use this as much as you like. Both for personal and commercial use. I hold no responsibility if anything goes wrong. If you use this, you don't need to refer to this repo, or give me any kind of credit but it would be appreciated. At least a ⭐ would be nice.

Contributing

Pull Requests are welcome. But, note that by creating a pull request you are giving me permission to merge your code and release it under the MIT license mentioned above.

Need Support?

In case of any issue you can submit an issue for this repository. Also don't forget to use tickets for your issue. So that way I can notice the issue easier.

Support Me

You can support me from github sponsors or buy me a coffee ☕

About

For Unity3D in C# written simple null object reference finder.

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages