LLM for Unity  v3.0.1
Create characters in Unity with LLMs!
Loading...
Searching...
No Matches
LLMUnity.LLMBuilder Class Reference

Class implementing the LLMUnity builder. More...

Inheritance diagram for LLMUnity.LLMBuilder:
[legend]

Static Public Member Functions

static string PluginDir (string platform, bool relative=false)
 
static void Retry (System.Action action, int retries=10, int delayMs=100)
 
static void HandleActionFileRecursive (string source, string target, Action< string, string > actionCallback)
 Performs an action for a file or a directory recursively.
 
static void CopyWithOverwrite (string source, string target)
 Overwrites a target file based on the source file.
 
static void CopyPath (string source, string target)
 Copies a source file to a target file.
 
static void MovePath (string source, string target)
 Moves a source file to a target file.
 
static bool DeletePath (string path)
 Deletes a path after checking if we are allowed to.
 
static void BuildLibraryPlatforms (BuildTarget buildTarget)
 Moves libraries in the correct place for building.
 
static void BuildModels ()
 Bundles the model information.
 
static void Build (BuildTarget buildTarget)
 Bundles the models and libraries.
 
static void Reset ()
 Resets the libraries back to their original state.
 

Static Public Attributes

static string BuildTempDir = Path.Combine(Directory.GetParent(Application.dataPath).FullName, "LLMUnityBuild")
 

Detailed Description

Class implementing the LLMUnity builder.

Definition at line 16 of file LLMBuilder.cs.

Member Function Documentation

◆ Build()

static void LLMUnity.LLMBuilder.Build ( BuildTarget buildTarget)
inlinestatic

Bundles the models and libraries.

Definition at line 322 of file LLMBuilder.cs.

◆ BuildLibraryPlatforms()

static void LLMUnity.LLMBuilder.BuildLibraryPlatforms ( BuildTarget buildTarget)
inlinestatic

Moves libraries in the correct place for building.

Parameters
platformtarget platform

Definition at line 195 of file LLMBuilder.cs.

Here is the caller graph for this function:

◆ BuildModels()

static void LLMUnity.LLMBuilder.BuildModels ( )
inlinestatic

Bundles the model information.

Definition at line 313 of file LLMBuilder.cs.

Here is the caller graph for this function:

◆ CopyPath()

static void LLMUnity.LLMBuilder.CopyPath ( string source,
string target )
inlinestatic

Copies a source file to a target file.

Parameters
sourcesource file
targettarget file

Definition at line 99 of file LLMBuilder.cs.

◆ CopyWithOverwrite()

static void LLMUnity.LLMBuilder.CopyWithOverwrite ( string source,
string target )
inlinestatic

Overwrites a target file based on the source file.

Parameters
sourcesource file
targettarget file

Definition at line 89 of file LLMBuilder.cs.

Here is the caller graph for this function:

◆ DeletePath()

static bool LLMUnity.LLMBuilder.DeletePath ( string path)
inlinestatic

Deletes a path after checking if we are allowed to.

Parameters
pathpath

Definition at line 119 of file LLMBuilder.cs.

Here is the caller graph for this function:

◆ HandleActionFileRecursive()

static void LLMUnity.LLMBuilder.HandleActionFileRecursive ( string source,
string target,
Action< string, string > actionCallback )
inlinestatic

Performs an action for a file or a directory recursively.

Parameters
sourcesource file/directory
targettarger file/directory
actionCallbackaction

Definition at line 63 of file LLMBuilder.cs.

Here is the caller graph for this function:

◆ MovePath()

static void LLMUnity.LLMBuilder.MovePath ( string source,
string target )
inlinestatic

Moves a source file to a target file.

Parameters
sourcesource file
targettarget file

Definition at line 109 of file LLMBuilder.cs.

◆ PluginDir()

static string LLMUnity.LLMBuilder.PluginDir ( string platform,
bool relative = false )
inlinestatic

Definition at line 28 of file LLMBuilder.cs.

◆ Reset()

static void LLMUnity.LLMBuilder.Reset ( )
inlinestatic

Resets the libraries back to their original state.

Definition at line 333 of file LLMBuilder.cs.

◆ Retry()

static void LLMUnity.LLMBuilder.Retry ( System::Action action,
int retries = 10,
int delayMs = 100 )
inlinestatic

Definition at line 35 of file LLMBuilder.cs.

Member Data Documentation

◆ BuildTempDir

string LLMUnity.LLMBuilder.BuildTempDir = Path.Combine(Directory.GetParent(Application.dataPath).FullName, "LLMUnityBuild")
static

Definition at line 19 of file LLMBuilder.cs.


The documentation for this class was generated from the following file: