This file contains 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
// Get the ExampleCharacterController | |
if (_kccMotor.CharacterController is not ExampleCharacterController exampleCharacterController) | |
{ | |
Debug.LogError("ExampleCharacterController is null"); | |
return; | |
} | |
// Disable | |
exampleCharacterController.enabled = false; |
This file contains 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 System.Diagnostics; | |
using SkiaSharp; | |
namespace AGES.Utils.Runtime.SpriteImageProcessor | |
{ | |
public class SpriteImageProcessor | |
{ | |
public SpriteImageProcessor() | |
{ |
This file contains 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
# The provided script is designed to be useful for identifying broken references caused by the [SerializeReference] attribute in Unity. In Unity, when creating a prefab for a script in a scene, old values may persist, potentially disrupting the SerializeReference mechanism and leading to errors during scene opening or building. The script helps locate and identify broken .asset (YAML) references in the Unity project. | |
param ( | |
[string]$searchDirectory = "C:\Users\Alde\Documents\GitHub\Wikwemot-AR\Wikwemot-AR\Assets", | |
[string]$searchString = "6945820829875175427" | |
) | |
function Search-FilesForString { | |
param ( | |
[string]$directory, |
This file contains 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 System.IO; | |
using System.Text; | |
using UnityEngine; | |
namespace AGES.Utils.Runtime.Logging | |
{ | |
/// <summary> | |
/// Redirects console output (Console.WriteLine) to Unity (Debug.Log) | |
/// </summary> |
This file contains 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.Collections.Generic; | |
using UnityEngine; | |
namespace AGES.Networking.AGES.Networking.Runtime.Client.Scripts.UI.Chat | |
{ | |
public class ChatInputHistory : MonoBehaviour | |
{ | |
// Keeps a record of previous player chat input and allows the player to scroll through it | |
private readonly List<string> chatHistory = new(); |
This file contains 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
public static class ReflectionUtils | |
{ | |
public static bool InheritsOrImplements(this Type child, Type parent) | |
{ | |
parent = ResolveGenericTypeDefinition(parent); | |
var currentChild = child.IsGenericType | |
? child.GetGenericTypeDefinition() | |
: child; |
This file contains 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 System.Diagnostics; | |
using System.IO; | |
using System.Threading.Tasks; | |
using SkiaSharp; | |
namespace AGES_Sprite_Processor | |
{ | |
internal class Program | |
{ |
This file contains 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
namespace Scripts.Utils.Logging | |
{ | |
/// <summary> | |
/// Logs NLog to Unity 'Debug' function. | |
/// Useful to read output of external dlls. | |
/// </summary> | |
public class UnityNLogTarget : TargetWithLayout | |
{ | |
public static void Init() | |
{ |
This file contains 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
%YAML 1.1 | |
%TAG !u! tag:unity3d.com,2011: | |
--- !u!43 &4300000 | |
Mesh: | |
m_ObjectHideFlags: 0 | |
m_CorrespondingSourceObject: {fileID: 0} | |
m_PrefabInstance: {fileID: 0} | |
m_PrefabAsset: {fileID: 0} | |
m_Name: HalfSphere | |
serializedVersion: 10 |
NewerOlder