コード例 #1
0
        public static void SetData(IDataInspectorProvider data, object context = null, bool normalise = false)
        {
            Dispose();
            var texture = data.ToTexture2D(normalise);

            _entries.Add(new DataEntry()
            {
                Context = context,
                Data    = data,
                Texture = texture,
            });
            GetWindow <DataInspector>();
        }
コード例 #2
0
        public static void SetData(IDataInspectorProvider data, object context = null, bool normalise = false)
        {
            Dispose();
            if (data == null)
            {
                Debug.LogWarning("Attempted to view null data in the Data Inspector! " + context);
                return;
            }
            var texture = data.ToTexture2D(normalise);

            _entries.Add(new DataEntry()
            {
                Context = context,
                Data    = data,
                Texture = texture,
            });
            GetWindow <DataInspector>();
        }