Skip to content

Standard Property Types

Int_EB

  • Definition: The field is defined as an integer.
  • Obfuscation Option: Available. Selecting this option renders the field unreadable in memory. It includes double checks on memory values and, if discrepancies are detected, triggers an onTampered event.

Float_EB

  • Definition: The field is defined as a floating point.
  • Obfuscation: Not available. Floats cannot be obfuscated.

String_EB

  • Definition: The field is defined as a string.
  • Obfuscation Option: Available. This option makes the field unreadable in memory, includes double checks on memory values, and triggers an onTampered event if irregularities are found.

Bool_EB

  • Definition: The field is defined as a boolean.
  • Obfuscation: Not available. Booleans cannot be obfuscated.
  • Definition: The field is defined as a dropdown option object, aligning with dropdown UI elements.
  • Obfuscation: Not available.
  • Details: Creating a DropDown_EB field automatically generates two fields: the dropdown options field and the current selected index as an integer. The latter cannot be removed independently. However, removing the dropdown field will automatically remove the CurrentSelectedIndex field as well.

Sprite_EB

  • Definition: The field is defined as a Sprite.
  • Obfuscation: Not available.

Advanced Property Types

The advanced property types Object_EB and ObjectList_EB introduce more complex data structures to your project. Both types require you to specify a Class/Type name, which refers to the name of a class or type defined within your project.

Working with Custom Classes in C#

When defining a custom class in C#, it's essential to mark the class as [Serializable] to ensure full compatibility with the inspector view and to leverage serialization capabilities provided by Unity. Here's an example of how to define a custom class:

C#
using System;
using UnityEngine;

[Serializable]
public class CustomData 
{
    public string FirstName;
    public string LastName;
    public int Age;
    public Sprite Profile;
}

In this scenario, CustomData is the Class/Type name you would enter when creating fields of type Object_EB or ObjectList_EB.

ObjectList_EB Details

Creating an ObjectList_EB field automatically generates two related fields:

  • ObjectList Field: Holds the list of objects.
  • Current Selected Index: An integer representing the index of the currently selected object in the list.

The "Current Selected Index" field is integral to the ObjectList_EB type and cannot be removed independently. However, removing the ObjectList field from your project will also automatically remove the associated "Current Selected Index" field.