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 UnityEngine; | |
// Render the screen in lower resolution | |
[ExecuteInEditMode] | |
[RequireComponent(typeof(Camera))] | |
public class ResoScaler : MonoBehaviour | |
{ | |
[Range(1, 8)] | |
public float scale = 1; |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class CleanUpWindow : EditorWindow | |
{ | |
bool groupEnabled = true; | |
List<string> usedAssets = new List<string>(); |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
public static class PivotUtilities | |
{ | |
[MenuItem("GameObject/Pivot/Create Pivot", false, 0)] | |
static void CreatePivotObject() | |
{ |
using UnityEngine; | |
using UnityEngine.Events; | |
using System.Collections; | |
/* | |
Event class for catching Unity Message Events that are sent to the GameObject's attached components. | |
Events that are captured here are sent from the GameObjectHelper class | |
*/ | |
[AddComponentMenu("Event/Catch Event")] |
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; | |
using System.Reflection; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
A a = new A(); |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.IO; | |
public class PlatformSwitcher | |
{ | |
[MenuItem("Platform/PC, Mac and Linux Standalone")] | |
static void SwitchPlatformToDesktop() | |
{ |
import bpy | |
group_input = {"Group", "Group.001", "Group.002"} | |
ob = bpy.context.active_object | |
group_lookup = {g.index: g.name for g in ob.vertex_groups} | |
group_candidates = {n for n in group_lookup.values() if n in group_input} | |
# test whether all candidates components of group_lookup | |
if all(n in group_lookup.values() for n in group_candidates): |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.AddressableAssets; | |
using UnityEngine.ResourceManagement.AsyncOperations; | |
using UnityEngine.ResourceManagement.ResourceLocations; | |
using Object = UnityEngine.Object; | |
public class AddressableLabels |
using UnityEngine; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class visibleCollider : MonoBehaviour { | |
// The Collider itself | |
private EdgeCollider2D thisCollider; | |
// array of collider points | |
private Vector2[] points; |