Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Samples~/Agents/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"visualstudiotoolsforunity.vstuc"
]
}
10 changes: 10 additions & 0 deletions Samples~/Agents/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Unity",
"type": "vstuc",
"request": "attach"
}
]
}
60 changes: 60 additions & 0 deletions Samples~/Agents/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.vs": true,
"**/.gitmodules": true,
"**/.vsconfig": true,
"**/*.booproj": true,
"**/*.pidb": true,
"**/*.suo": true,
"**/*.user": true,
"**/*.userprefs": true,
"**/*.unityproj": true,
"**/*.dll": true,
"**/*.exe": true,
"**/*.pdf": true,
"**/*.mid": true,
"**/*.midi": true,
"**/*.wav": true,
"**/*.gif": true,
"**/*.ico": true,
"**/*.jpg": true,
"**/*.jpeg": true,
"**/*.png": true,
"**/*.psd": true,
"**/*.tga": true,
"**/*.tif": true,
"**/*.tiff": true,
"**/*.3ds": true,
"**/*.3DS": true,
"**/*.fbx": true,
"**/*.FBX": true,
"**/*.lxo": true,
"**/*.LXO": true,
"**/*.ma": true,
"**/*.MA": true,
"**/*.obj": true,
"**/*.OBJ": true,
"**/*.asset": true,
"**/*.cubemap": true,
"**/*.flare": true,
"**/*.mat": true,
"**/*.meta": true,
"**/*.prefab": true,
"**/*.unity": true,
"build/": true,
"Build/": true,
"Library/": true,
"library/": true,
"obj/": true,
"Obj/": true,
"Logs/": true,
"logs/": true,
"ProjectSettings/": true,
"UserSettings/": true,
"temp/": true,
"Temp/": true
},
"dotnet.defaultSolution": "Agents.sln"
}
8 changes: 8 additions & 0 deletions Samples~/Agents/Assets/Art.meta

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

8 changes: 8 additions & 0 deletions Samples~/Agents/Assets/Art/AmbientSounds.meta

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

Binary file not shown.

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

8 changes: 8 additions & 0 deletions Samples~/Agents/Assets/Art/Backgrounds.meta

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 140 additions & 0 deletions Samples~/Agents/Assets/Art/Backgrounds/LiveKit.jpg.meta

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

8 changes: 8 additions & 0 deletions Samples~/Agents/Assets/Editor.meta

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

25 changes: 25 additions & 0 deletions Samples~/Agents/Assets/Editor/AgentsCommonSampleCheck.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using UnityEditor;
using UnityEngine;

public static class AgentsCommonSampleCheck
{
// Canonical GUIDs of the Common sample's ScrollingLog assets; the sample
// scenes bind to these, so resolving them is what "imported" means.
const string ScrollingLogScriptGuid = "0c3a683a174e6f34fbe620bca4947e2d";
const string ScrollingLogPrefabGuid = "b654e1b6fc22b404f857a041468cadb2";

[InitializeOnLoadMethod]
static void Check()
{
if (IsImported(ScrollingLogScriptGuid) && IsImported(ScrollingLogPrefabGuid))
return;
Debug.LogError(
"[LiveKit] The Agents sample requires the \"Common\" sample. " +
"Import it via Window > Package Manager > LiveKit SDK > Samples > Common > Import.");
}

static bool IsImported(string guid)
{
return AssetDatabase.GUIDToAssetPath(guid).StartsWith("Assets/");
}
}
11 changes: 11 additions & 0 deletions Samples~/Agents/Assets/Editor/AgentsCommonSampleCheck.cs.meta

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

33 changes: 33 additions & 0 deletions Samples~/Agents/Assets/Editor/BuildPostProcessor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#if UNITY_IOS

using UnityEngine;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using UnityEditor.Callbacks;

public class BuildPostProcessor
{
[PostProcessBuildAttribute(500)]
public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltProject)
{
if (buildTarget != BuildTarget.iOS)
{
return;
}
var projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject proj = new PBXProject();
proj.ReadFromFile(projPath);
#if UNITY_2019_3_OR_NEWER
string guid = proj.GetUnityFrameworkTargetGuid();
#else
string guid = proj.TargetGuidByName("Unity-iPhone");
#endif
proj.AddBuildProperty(guid, "OTHER_LDFLAGS", "-ObjC");
string fileGuid = proj.FindFileGuidByProjectPath("Libraries/libiPhone-lib.a");
proj.RemoveFileFromBuild(guid, fileGuid);
proj.AddFileToBuild(guid, fileGuid);
proj.WriteToFile(projPath);
}
}

#endif
11 changes: 11 additions & 0 deletions Samples~/Agents/Assets/Editor/BuildPostProcessor.cs.meta

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

8 changes: 8 additions & 0 deletions Samples~/Agents/Assets/Plugins.meta

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

8 changes: 8 additions & 0 deletions Samples~/Agents/Assets/Plugins/Android.meta

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

Loading
Loading