Serialization & declaration - The AntiCheat - KCryptor
KCryptor support all base numeric types int, long, float, double with known custom type name KInt, KLong, KFloat, KDouble and these types already supported in Unity Inspector
These type can be used with array or list that Unity Inspector support without any problem.
Arrays and List can works as normal for encrypted types
All Encrypted types work in all Unity Editor platform and all device platform, included:
- Windows/Mac Editor and Standalone
- iOS/Android
If you want know more about features or descriptions KCryptor, please visit The AntiCheat - KCryptor.
This is just small utility make by Khoi Nguyen
Contact to me if you want resell this utility or other purposes.
Contact: BrillianT Studio
Email: khoint.uit@gmail.com
//Encrypted Type [SerializeField] KInt m_kIntValue = 1; [SerializeField] KLong m_kLongValue = 1L; [SerializeField] KFloat m_kFloatValue = 1f; [SerializeField] KDouble m_kDoubleValue = 1;
Encrypted types in Inspector |
These type can be used with array or list that Unity Inspector support without any problem.
//Encrypted List [SerializeField] List<KInt> m_kIntArray = new List<KInt>(); [SerializeField] List<KLong> m_kLongArray = new List<KLong>(); [SerializeField] List<KFloat> m_kFloatArray = new List<KFloat>(); [SerializeField] List<KDouble> m_kDoubleArray = new List<KDouble>();
Encrypted types in array & list in Inspector |
m_kIntArray.Add(1111); m_kLongArray.Add(2222); m_kFloatArray.Add(333.3f); m_kDoubleArray.Add(1.222);
In other causes, you want use custom encrypted type in other class or struct, just simple place encrypted type as default type before your variables.
[Serializable] public class OtherNested{ // Base Type [SerializeField] KInt m_intValue = 0; [SerializeField] KLong m_longValue = 0L; [SerializeField] KFloat m_floatValue = 0f; [SerializeField] KDouble m_doubleValue = 0; // List Type [SerializeField] List<KInt> m_kIntArray = new List<KInt>(); [SerializeField] List<KLong> m_kLongArray = new List<KLong>(); [SerializeField] List<KFloat> m_kFloatArray = new List<KFloat>(); [SerializeField] List<KDouble> m_kDoubleArray = new List<KDouble>(); } [Serializable] public class NestedData{ // Base Type [SerializeField] KInt m_intValue = 0; [SerializeField] KLong m_longValue = 0L; [SerializeField] KFloat m_floatValue = 0f; [SerializeField] KDouble m_doubleValue = 0; // List Type [SerializeField] List<KInt> m_kIntArray = new List<KInt>(); [SerializeField] List<KLong> m_kLongArray = new List<KLong>(); [SerializeField] List<KFloat> m_kFloatArray = new List<KFloat>(); [SerializeField] List<KDouble> m_kDoubleArray = new List<KDouble>(); // Nested Type [SerializeField] OtherNested m_otherNested = new OtherNested(); [SerializeField] List<OtherNested> m_otherNestedList = new List<OtherNested>(); }
Encrypted types and custom and nested classes in Inspector |
All Encrypted types work in all Unity Editor platform and all device platform, included:
- Windows/Mac Editor and Standalone
- iOS/Android
If you want know more about features or descriptions KCryptor, please visit The AntiCheat - KCryptor.
This is just small utility make by Khoi Nguyen
Contact to me if you want resell this utility or other purposes.
Contact: BrillianT Studio
Email: khoint.uit@gmail.com
No comments:
Post a Comment