This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* -------------------------------------------------------------------------------- | |
| * Notes (AssistantsSchemas.cs) :: | |
| * -------------------------------------------------------------------------------- | |
| * This file contains a set of classes and interfaces that define the structure | |
| * of the JSON objects that are used to interact with the OpenAI API. These objects | |
| * are used to serialize and deserialize JSON data to and from C# objects. | |
| * We use System.Text.Json for this purpose, and the classes in this file are | |
| * designed to work with the default JSON serialization options provided by the | |
| * System.Text.Json library (higher performance than Newtonsoft.Json). | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| // Here we simulate a managed object using native memory resources which has the same | |
| // behavior as a Unity Object with "null-ness" and checks. It demonstrates why if(obj) | |
| // is usually how you should be doing your checks ... | |
| internal class Program | |
| { | |
| private static void Main( string[] args ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using JetBrains.Annotations; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace UnityProject.Editor { | |
| public sealed class TextureAlphaPremultiplier : AssetPostprocessor { | |
| public void OnPreprocessTexture() { |