Skip to content

Commit

Permalink
Initial Commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLaFritz committed May 4, 2022
1 parent 65bbe7c commit 277a853
Show file tree
Hide file tree
Showing 38 changed files with 352 additions and 77 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Binary file modified Documentation~/Images/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Documentation~/Images/ScreenShot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions Editor/EmptyEditorWindow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEditor.UIElements;


public class EmptyEditorWindow : EditorWindow
{
[MenuItem("Window/UI Toolkit/EmptyEditorWindow")]
public static void ShowExample()
{
EmptyEditorWindow wnd = GetWindow<EmptyEditorWindow>();
wnd.titleContent = new GUIContent("EmptyEditorWindow");
}

public void CreateGUI()
{
// Each editor window contains a root VisualElement object
VisualElement root = rootVisualElement;

// VisualElements objects can contain other VisualElement following a tree hierarchy.
VisualElement label = new Label("Hello World! From C#");
root.Add(label);

// Import UXML
var visualTree = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>("Assets/GraphViewBehaviorTree/Editor/EmptyEditorWindow.uxml");
VisualElement labelFromUXML = visualTree.Instantiate();
root.Add(labelFromUXML);

// A stylesheet can be added to a VisualElement.
// The style will be applied to the VisualElement and all of its children.
var styleSheet = AssetDatabase.LoadAssetAtPath<StyleSheet>("Assets/GraphViewBehaviorTree/Editor/EmptyEditorWindow.uss");
VisualElement labelWithStyle = new Label("Hello World! With Style");
labelWithStyle.styleSheets.Add(styleSheet);
root.Add(labelWithStyle);
}
}
11 changes: 11 additions & 0 deletions Editor/EmptyEditorWindow.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Editor/EmptyEditorWindow.uss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Label {
font-size: 20px;
-unity-font-style: bold;
color: rgb(68, 138, 255);
}
11 changes: 11 additions & 0 deletions Editor/EmptyEditorWindow.uss.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Editor/EmptyEditorWindow.uxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<engine:UXML
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:engine="UnityEngine.UIElements"
xmlns:editor="UnityEditor.UIElements"
xsi:noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd"
>
<engine:Label text="Hello World! From UXML" />
</engine:UXML>
10 changes: 10 additions & 0 deletions Editor/EmptyEditorWindow.uxml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jameslafritz.[package-name].Editor",
"rootNamespace": "",
"name": "jameslafritz.GraphViewBehaviorTree.Editor",
"rootNamespace": "GraphViewBehaviorTree.Editor",
"references": [
"GUID:d24feaeed76a1554499d78504aec6a30"
"GUID:0bfbb1bb60202024991fa3f551e4c375"
],
"includePlatforms": [
"Editor"
Expand Down
7 changes: 7 additions & 0 deletions Editor/jameslafritz.GraphViewBehaviorTree.Editor.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions LICENSE.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
<!--<h2 align="center">Project Description</h2>-->

<p align="center">
<img src ="https://github-readme-stats-jameslafritz.vercel.app/api/pin?username=JamesLaFritz&repo=2021DevEnviromentTemplate&theme=react" alt="Git Repo Title and Info" title="Repo Info"/>'
<img src ="https://github-readme-stats-jameslafritz.vercel.app/api/pin?username=JamesLaFritz&repo=GraphViewBehaviorTree&theme=react" alt="Git Repo Title and Info" title="Repo Info"/>'
<br />
<a href="https://github.com/JamesLaFritz/2021DevEnviromentTemplate/issues">Report Bug</a>
<a href="https://github.com/JamesLaFritz/GraphViewBehaviorTree/issues">Report Bug</a>
·
<a href="https://github.com/JamesLaFritz/2021DevEnviromentTemplate/issues">Request Feature</a>
<a href="https://github.com/JamesLaFritz/GraphViewBehaviorTree/issues">Request Feature</a>
</p>

<!-- PROJECT SHIELDS -->
<p align="center">
<a href="https://github.com/JamesLafritz/2021DevEnviromentTemplate/graphs/contributors">
<img src="https://img.shields.io/github/contributors/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge" title="forks Badge" alt="forks Badge"/>
<a href="https://github.com/JamesLafritz/GraphViewBehaviorTree/graphs/contributors">
<img src="https://img.shields.io/github/contributors/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge" title="forks Badge" alt="forks Badge"/>
</a>
<a href="https://img.shields.io/github/forks/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge">
<img src="https://img.shields.io/github/forks/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge" title="stargazers Badge" alt="stargazers Badge"/>
<a href="https://img.shields.io/github/forks/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge">
<img src="https://img.shields.io/github/forks/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge" title="stargazers Badge" alt="stargazers Badge"/>
</a>
<a href="https://github.com/JamesLafritz/2021DevEnviromentTemplate/stargazers">
<img src="https://img.shields.io/github/stars/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge" title="Contributors Badge" alt="Contributors Badge"/>
<a href="https://github.com/JamesLafritz/GraphViewBehaviorTree/stargazers">
<img src="https://img.shields.io/github/stars/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge" title="Contributors Badge" alt="Contributors Badge"/>
</a>
<a href="https://github.com/JamesLafritz/2021DevEnviromentTemplate/issues">
<img src="https://img.shields.io/github/issues/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge" title="issues Badge" alt="issues Badge"/>
<a href="https://github.com/JamesLafritz/GraphViewBehaviorTree/issues">
<img src="https://img.shields.io/github/issues/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge" title="issues Badge" alt="issues Badge"/>
</a>
<a href="https://img.shields.io/github/license/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge">
<img src="https://img.shields.io/github/license/JamesLafritz/2021DevEnviromentTemplate.svg?style=for-the-badge" title="License Badge" alt="License Badge"/>
<a href="https://img.shields.io/github/license/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge">
<img src="https://img.shields.io/github/license/JamesLafritz/GraphViewBehaviorTree.svg?style=for-the-badge" title="License Badge" alt="License Badge"/>
</a>
</p>

Expand All @@ -48,7 +48,7 @@

<!-- PROJECT LOGO -->
<p align="center">
<a href="https://github.com/JamesLaFritz/2021DevEnviromentTemplate">
<a href="https://github.com/JamesLaFritz/GraphViewBehaviorTree">
<img src="Documentation~/Images/Logo.png" alt="Logo" width="256"/>
</a>
</p>
Expand Down Expand Up @@ -78,7 +78,7 @@

![Product Name Screen Shot](Documentation~/Images/ScreenShot.png)

Demonstrates Different Programming Design Patterns In Unity. There are many different kinds of software programming patterns. I am only showing a few of them.
Behavior Tree using UI Builder, GraphView, and Scriptable Objects in Unity 2021.3



Expand All @@ -90,7 +90,7 @@ Demonstrates Different Programming Design Patterns In Unity. There are many diff
<!-- Articles -->
### Articles

[](
[]()
[]()
[]()

Expand All @@ -99,7 +99,7 @@ Demonstrates Different Programming Design Patterns In Unity. There are many diff
<!-- ROADMAP -->
## Roadmap

See the [open issues](https://github.com/JamesLaFritz/2021DevEnviromentTemplate/issues) for a list of proposed features (and known issues).
See the [open issues](https://github.com/JamesLaFritz/GraphViewBehaviorTree/issues) for a list of proposed features (and known issues).



Expand Down
7 changes: 7 additions & 0 deletions README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Runtime/Node.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using UnityEngine;

namespace GraphViewBehaviorTree
{
public class Node : MonoBehaviour { }
}
11 changes: 11 additions & 0 deletions Runtime/Node.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"name": "jameslafritz.[package-name].Tests",
"rootNamespace": "",
"references": [
"GUID:d24feaeed76a1554499d78504aec6a30"
],
"name": "jameslafritz.GraphViewBehaviorTree",
"rootNamespace": "GraphViewBehaviorTree",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
Expand Down
7 changes: 7 additions & 0 deletions Runtime/jameslafritz.GraphViewBehaviorTree.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Runtime/jameslafritz.[package-name].asmdef

This file was deleted.

8 changes: 8 additions & 0 deletions Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Tests/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Tests/Editor/GraphViewBehaviorTreeEditorTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;

namespace GraphViewBehaviorTree.Editor.Tests
{
public class GraphViewBehaviorTreeEditorTest
{
// A Test behaves as an ordinary method
[Test]
public void GraphViewBehaviorTreeEditorTestSimplePasses()
{
// Use the Assert class to test conditions
}

// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
// `yield return null;` to skip a frame.
[UnityTest]
public IEnumerator GraphViewBehaviorTreeEditorTestWithEnumeratorPasses()
{
// Use the Assert class to test conditions.
// Use yield to skip a frame.
yield return null;
}
}
}
11 changes: 11 additions & 0 deletions Tests/Editor/GraphViewBehaviorTreeEditorTest.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "jameslafritz.GraphViewBehaviorTree.Editor.Tests",
"rootNamespace": "GraphViewBehaviorTree.Editor.Tests",
"references": [
"GUID:0bfbb1bb60202024991fa3f551e4c375",
"GUID:922ce05479b8c274b9825ae27a7f8f0c",
"GUID:2ee67a4da0cfd084998069b2b2ba2f71",
"GUID:27619889b8ba8c24980f49ee34dbb44a",
"GUID:0acc523941302664db1f4e527237feb3"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions Tests/Editor/jameslafritz.[package-name].Editor.Tests.asmdef

This file was deleted.

8 changes: 8 additions & 0 deletions Tests/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 277a853

Please sign in to comment.