Skip to content

Instantly share code, notes, and snippets.

@nyunesu
Last active February 4, 2021 23:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyunesu/013a5d3cdbd64c62c0c1e0b34dc9911e to your computer and use it in GitHub Desktop.
Save nyunesu/013a5d3cdbd64c62c0c1e0b34dc9911e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Patterns
xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"
xmlns:unity="urn:schemas-jetbrains-com:member-reordering-patterns-unity">
<TypePattern DisplayName="Unity classes" Priority="100">
<TypePattern.Match>
<unity:SerializableClass/>
</TypePattern.Match>
<Entry DisplayName="Public Properties and Serialized Fields">
<Entry.Match>
<And>
<Or>
<And>
<Access Is="Public"/>
<Kind Is="Property"/>
<Not>
<Kind Is="Field"/>
</Not>
</And>
<unity:SerializedField/>
</Or>
<Not>
<Static/>
</Not>
</And>
</Entry.Match>
<Entry.SortBy>
<Name/>
<Access/>
<Kind>
<Kind.Order>
<DeclarationKind>Autoproperty</DeclarationKind>
</Kind.Order>
</Kind>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Enums" Priority="100">
<Entry.Match>
<And>
<Access Is="Public"/>
<Kind Is="Enum"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Enums" Priority="100">
<Entry.Match>
<Kind Is="Enum"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Delegates" Priority="100">
<Entry.Match>
<And>
<Access Is="Public"/>
<Or>
<Kind Is="Delegate"/>
<Kind Is="Event"/>
</Or>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Delegates" Priority="100">
<Entry.Match>
<Or>
<Kind Is="Delegate"/>
<Kind Is="Event"/>
</Or>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Properties">
<Entry.Match>
<Kind Is="Property"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Constants">
<Entry.Match>
<And>
<Access Is="Public"/>
<Kind Is="Constant"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Readonly Fields">
<Entry.Match>
<And>
<Access Is="Public"/>
<Readonly/>
<Kind Is="Field"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Static Fields">
<Entry.Match>
<And>
<Access Is="Public"/>
<Static/>
<Kind Is="Field"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Fields" Priority="150">
<Entry.Match>
<And>
<Access Is="Public"/>
<Kind Is="Field"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Constants">
<Entry.Match>
<Kind Is="Constant"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Readonly Fields">
<Entry.Match>
<And>
<Readonly/>
<Kind Is="Field"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Static Fields">
<Entry.Match>
<And>
<Static/>
<Kind Is="Field"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Fields">
<Entry.Match>
<And>
<Kind Is="Field"/>
</And>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Indexers">
<Entry.Match>
<Kind Is="Indexer"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Operators">
<Entry.Match>
<Kind Is="Operator"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Constructors">
<Entry.Match>
<Kind Is="Constructor"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Destructors">
<Entry.Match>
<Kind Is="Destructor"/>
</Entry.Match>
<Entry.SortBy>
<Access/>
<Static/>
<Name/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Interface Members" Priority="100">
<Entry.Match>
<And>
<Kind Is="Member"/>
<ImplementsInterface/>
</And>
</Entry.Match>
<Entry.SortBy>
<ImplementsInterface Immediate="true"/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="OnValidate Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnValidate"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Awake Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="Awake"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Start Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="Start"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnEnable Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnEnable"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnDisable Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnDisable"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnDestroy Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnDestroy"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="FixedUpdate Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="FixedUpdate"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnTrigger Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnTrigger"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnCollision Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnCollision"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnMouse Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnMouse"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="OnPointer Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="OnPointer"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Update Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="Update"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="LateUpdate Method">
<Entry.Match>
<And>
<Kind Is="Method"/>
<Name Is="LateUpdate"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Event Functions">
<Entry.Match>
<unity:EventFunction/>
</Entry.Match>
</Entry>
<Entry DisplayName="Interface Implementations" Priority="100">
<Entry.Match>
<And>
<Kind Is="Member"/>
<ImplementsInterface/>
</And>
</Entry.Match>
<Entry.SortBy>
<ImplementsInterface Immediate="true"/>
</Entry.SortBy>
</Entry>
<Entry DisplayName="Public Methods">
<Entry.Match>
<And>
<Access Is="Public"/>
<Kind Is="Method"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Methods">
<Entry.Match>
<Kind Is="Method"/>
</Entry.Match>
</Entry>
<Entry DisplayName="All Other Members"/>
<Entry DisplayName="Public Nested Structs">
<Entry.Match>
<And>
<Access Is="Public"/>
<Kind Is="Struct"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Nested STRUCTS">
<Entry.Match>
<Kind Is="Struct"/>
</Entry.Match>
</Entry>
<Entry DisplayName="Public Nested Classes">
<Entry.Match>
<And>
<Access Is="Public"/>
<Kind Is="Class"/>
</And>
</Entry.Match>
</Entry>
<Entry DisplayName="Nested Classes">
<Entry.Match>
<Kind Is="Class"/>
</Entry.Match>
</Entry>
</TypePattern>
</Patterns>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment