How to let it work with UI component !

Issue #166 open
奇 金 created an issue
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.UI;
using Sirenix.OdinInspector;

public class MyButton : Button
    public int ID = 100;

    public List<int> MyList = new List<int>();


I have a class that inherits from the button. I want it to show the default content and what I've expanded.How am I supposed to do that?

Comments (2)

  1. Tor Esa Vestergaard
    • changed status to open

    We're afraid there isn't currently a good way of doing this, except going into Odin's preferences and disabling Odin completely for the MyButton type.

    In 1.1, we're doing a rebuild of our property system internals, which will allow stuff like this to be done - we're afraid you'll have to wait until then, for this.

  2. Log in to comment