How can i create a new custom object type?

Hi, i would like to create a class with all the properties encapsulated, and then replicate it as a Property/object.
But i don't know how to make appear my custom class at the Assets/Editor....

How it could be done?
Thanks

Best Answers

Answers

  • Thanks, but this is not what i need. I would like to have a C# class with all the properties that i need. As far i can see, when you select the Object property at the editor, appears a drop down when you should select your own class, but always appears NONE. I figure out that i should register my custom class to appear at the drop down, but i don't know how to do it..
    I googled it and found:
    // Register with photon your custom data type to be serialized and deserialized.
    PhotonPeer.RegisterType(typeof(DamageInfo), (byte)'Z', SerializeDamageInfo, DeserializeDamageInfo);

    But i don't know where to call it .... :(
  • JMaura
    JMaura
    Answer ✓
    Ok, i understand now. Object means 'a Bolt Asset Object', not c# class object.... :)