Guide for Unity Addressable Asset System.
Check out this sample code repo.
This guide supports languages below.
Created: 2020-07-03
Last updated: 2020-08-26 minor typo correction
Available stats: | |
Ai - Carving.ApplyResults - TimeNanoseconds | |
Ai - Carving.BuildBVTree - TimeNanoseconds | |
Ai - Carving.Clipping - TimeNanoseconds | |
Ai - Carving.ConvexHulls - TimeNanoseconds | |
Ai - Carving.Prepare - TimeNanoseconds | |
Ai - Carving.ProjectVertices - TimeNanoseconds | |
Ai - CollectSources - TimeNanoseconds | |
Ai - Colliders - TimeNanoseconds | |
Ai - Components.NavMeshAgent.SendMessage - TimeNanoseconds |
/** | |
* @name Adblock for Discord | |
* @author TheSunCat and contributors | |
* @version 1.0.0 | |
* @description We have moved to Codeberg! Follow the link below: | |
* @source https://codeberg.org/AllPurposeMat/Disblock-Origin | |
*/ | |
#app-mount::before { | |
content: "The Disblock Origin theme has moved to Codeberg! Please check https://codeberg.org/AllPurposeMat/Disblock-Origin"; |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
//comment the next line out if you aren't using Rewired | |
using Rewired; | |
[RequireComponent(typeof(ScrollRect))] | |
public class ScrollRectAutoScroll : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler | |
{ |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Sirenix.OdinInspector; | |
using System.Linq; | |
using System; | |
using WizardsCode; | |
namespace WizardsCode.Optimization | |
{ |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// This script is under CCO License (TL;DR do what you will with it ;-) | |
/// See https://creativecommons.org/share-your-work/public-domain/cc0/ | |
/// | |
/// This works best when you have a fire or candle particle effect on the same location as the light | |
/// | |
/// Check out my You Tube channel https://youtube.com/c/WizardsCode |
static Lifecycle() => Debug.Log(Prefix + "Static Constructor"); | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] static void Subs() => Debug.Log(Prefix + "Subsystem Registration"); | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] static void AfterAsm() => Debug.Log(Prefix + "AfterAssembliesLoaded"); | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)] static void BeforeSlash() => Debug.Log(Prefix + "Before Splash"); | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] static void BeforeScene() => Debug.Log(Prefix + "BeforeScene"); | |
private void Awake() => Debug.Log(Prefix + "Awake"); | |
private void OnEnable() => Debug.Log(Prefix + "OnEnable"); | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)] static void AfterScene() => Debug.Log(Prefix + "AfterSceneLoad"); | |
[RuntimeInitializeOnLoadMethod] static void DefaultLog() => Debug.Log(Prefix + "RuntimeInit Default"); | |
void Start() => Debug |
Guide for Unity Addressable Asset System.
Check out this sample code repo.
This guide supports languages below.
Created: 2020-07-03
Last updated: 2020-08-26 minor typo correction
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
using ShadowResolution = UnityEngine.Rendering.Universal.ShadowResolution; | |
/// <summary> | |
/// Enables getting/setting URP graphics settings properties that don't have built-in getters and setters. |
public static class UnityExtensions | |
{ | |
public static Transform FindDeepChild(this Transform aParent, string aName) | |
{ | |
Queue<Transform> queue = new Queue<Transform>(); | |
queue.Enqueue(aParent); | |
while (queue.Count > 0) | |
{ | |
var c = queue.Dequeue(); | |
if (c.name == aName) return c; |
using InternalRealtimeCSG; | |
using RealtimeCSG.Components; | |
using UnityEditor; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
using UnityEngine; | |
/// <summary> | |
/// Created: 03-19-2019 | |
/// Updated: |