// Creates an editor node. private BonsaiNode CreateEditorNode(Type behaviourType) { var prop = BonsaiEditor.GetNodeTypeProperties(behaviourType); var tex = BonsaiPreferences.Texture(prop.texName); var node = AddEditorNode(prop.hasOutput, tex); return(node); }
private static Texture NodeIcon(Type behaviourType) { var prop = BonsaiEditor.GetNodeTypeProperties(behaviourType); return(BonsaiPreferences.Texture(prop.texName)); }