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

Class implementing the LLMUnity builder. More...

Static Public Member Functions

static void HandleActionFileRecursive (string source, string target, ActionCallback 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 HideLibraryPlatforms (string platform)
 Hides all the library platforms apart from the target platform by moving out their library folders outside of StreamingAssets.
 
static void BuildModels ()
 Bundles the model information.
 
static void Build (string platform)
 Bundles the models and libraries.
 
static void Reset ()
 Resets the libraries back to their original state.
 

Static Public Attributes

static string BuildTempDir = Path.Combine(Application.temporaryCachePath, "LLMUnityBuild")
 

Detailed Description

Class implementing the LLMUnity builder.

Definition at line 15 of file LLMBuilder.cs.

Member Function Documentation

◆ Build()

static void LLMUnity.LLMBuilder.Build ( string platform)
inlinestatic

Bundles the models and libraries.

Definition at line 184 of file LLMBuilder.cs.

◆ BuildModels()

static void LLMUnity.LLMBuilder.BuildModels ( )
inlinestatic

Bundles the model information.

Definition at line 175 of file LLMBuilder.cs.

◆ 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 67 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 57 of file LLMBuilder.cs.

◆ DeletePath()

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

Deletes a path after checking if we are allowed to.

Parameters
pathpath

Definition at line 87 of file LLMBuilder.cs.

◆ HandleActionFileRecursive()

static void LLMUnity.LLMBuilder.HandleActionFileRecursive ( string source,
string target,
ActionCallback actionCallback )
inlinestatic

Performs an action for a file or a directory recursively.

Parameters
sourcesource file/directory
targettarger file/directory
actionCallbackaction

Definition at line 33 of file LLMBuilder.cs.

◆ HideLibraryPlatforms()

static void LLMUnity.LLMBuilder.HideLibraryPlatforms ( string platform)
inlinestatic

Hides all the library platforms apart from the target platform by moving out their library folders outside of StreamingAssets.

Parameters
platformtarget platform

Definition at line 150 of file LLMBuilder.cs.

◆ 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 77 of file LLMBuilder.cs.

◆ Reset()

static void LLMUnity.LLMBuilder.Reset ( )
inlinestatic

Resets the libraries back to their original state.

Definition at line 194 of file LLMBuilder.cs.

Member Data Documentation

◆ BuildTempDir

string LLMUnity.LLMBuilder.BuildTempDir = Path.Combine(Application.temporaryCachePath, "LLMUnityBuild")
static

Definition at line 18 of file LLMBuilder.cs.


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