Skip to content

Instantly share code, notes, and snippets.

@seldomU
seldomU / BundleBuildBackend.cs
Created October 26, 2016 21:54
Backend for AssetBundle Graph Tool
using UnityEngine;
using RelationsInspector.Backend;
using AssetBundleGraph;
using RelationsInspector;
using System.Collections.Generic;
using UnityEditor;
using System.Linq;
[AcceptTargets(typeof(SaveData))]
public class BundleBuildBackend : MinimalBackend<NodeData, string>
@seldomU
seldomU / Instructions.md
Last active May 16, 2016 13:06
Accessing the RelationsInspector API through reflection

Accessing the RelationsInspector API through reflection

By including the code file below, any Unity project can access RelationsInspector's API without depending on it to be present. This is useful when a tool should offer optional controls when the user has RelationsInspector installed, and hide them if he does not. For example, an optional button could create a graph window like this:

string backendTypeName = "TheBackendTypeNameYouWantToAccess";

// check if the backend as well as RelationsInspector are installed
if ( RelationsInspectorLink.HasBackend( backendTypeName ) )
@seldomU
seldomU / Instructions.md
Last active February 23, 2017 05:57
A node-based editor for S-Quest

A node-based editor for S-Quest

The class listed below this text, QuestRIBackend.cs, provides a graph editor for the relations between quests in S-Quest. In order to use it, first install RelationsInspector and then place QuestRIBackend.cs into the folder Assets/S-Quest/C#/Editor of your Unity project. Now select Window/RelationsInspector from Unity's toolbar and when the window has opened, select QuestRIBackend from the window's toolbar. You'll then see the quest graph of the active scene, and can start adding and removing quests as well as change their connections. If you have questions or feedback, please use the S-Quest discussion thread.

It looks like this:

@seldomU
seldomU / TestBackend4.cs
Created January 19, 2016 04:55
RelationsInspector test backend, with adding and removing GameObjects
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
using RelationsInspector;
using RelationsInspector.Backend;
public class TestBackend4 : MinimalBackend<GameObject, string>
{
string searchstring = string.Empty;
@seldomU
seldomU / TestBackend3.cs
Created January 19, 2016 04:54
RelationsInspector test backend, with toolbar and search
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
using RelationsInspector;
using RelationsInspector.Backend;
public class TestBackend3 : MinimalBackend<GameObject, string>
{
@seldomU
seldomU / TestBackend2.cs
Created January 19, 2016 04:52
RelationsInspector test backend, with transform parent editing
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
using RelationsInspector;
using RelationsInspector.Backend;
public class TestBackend2 : MinimalBackend<GameObject, string>
{
public override IEnumerable<Relation<GameObject, string>> GetRelations( GameObject entity )