artees / unity-semver Goto Github PK
View Code? Open in Web Editor NEWA convenient way to edit and compare version numbers according to the Semantic Versioning 2.0.0 specification. Also includes a property drawer for Unity.
License: MIT License
A convenient way to edit and compare version numbers according to the Semantic Versioning 2.0.0 specification. Also includes a property drawer for Unity.
License: MIT License
We added the following field to a ScriptableObject class as per the documentation:
[SemVer] string Version = "0.0.0";
However the drawer yielded the following result:
Upon checking the code in Artees/UnitySemVer/Editor/SemVerDrawer.cs at line 38:
*35* protected SemVer DrawSemVer(Rect position, SerializedProperty property, GUIContent label)
*36* {
*37* InitPosition(position);
*38* label.text = $"{label.text} {Target}";
*39* property.isExpanded =
The culprit seems to be label.text recursively prefixes itself on each Draw call.
Is there some prefix which should be kept here or can we fix it by changing it to:
label.text = $"{Target}";
Seems local filed _build
is missing. Or I don't get the point. Piece of code below fix the issue
private class ManualBuild : SemVerAutoBuild
{
private string _build = string.Empty;
internal override string Get(string build)
{
return _build;
}
internal override string Set(string build)
{
_build = build;
return build;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.