Answer the question
In order to leave comments, you need to log in
How to make properties appear in the inspector?
Gentlemen, such a problem. My class implements an interface. In the interface, I wrote two properties Name and CompanyName.
I wrote this in class:
using UnityEngine;
public class Processor : MonoBehaviour, IComponent
{
[SerializeField] int _name;
[SerializeField] int _companyName;
public string Name { get; set; }
public string CompanyName { get; set; }
}
interface IComponent
{
public string Name { get; set; }
public string CompanyName { get; set; }
Text.text = processor.Name;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question