https://github.com/RimuruDev/Unity-WEBGL-DeviceTypeDetector
Если возникнут проблемы/вопросы пишете в комментариях.
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class SwipeDetector : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler | |
{ | |
private Vector2 lastPosition; | |
public Vector2 swipeDelta; | |
private Coroutine coroutine; |
https://github.com/RimuruDev/Unity-WEBGL-DeviceTypeDetector
Если возникнут проблемы/вопросы пишете в комментариях.
using System; | |
using UnityEngine; | |
using UnityEngine.LowLevel; | |
using UnityEngine.PlayerLoop; | |
public static class PlayerLoopCleaner | |
{ | |
private static readonly Type[] typesToRemove = new Type[] { | |
typeof(EarlyUpdate.Physics2DEarlyUpdate), | |
// Physics 2D |
#!/bin/bash | |
for i in *psd | |
do | |
name=${i%.psd} | |
convert "$name.psd[0]" -resize 100% "$name.png" | |
done |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
// Adds a "Edit Prefab" option in the Assets menu (or right clicking an asset in the project browser). | |
// This opens an empty scene with your prefab where you can edit it. | |
// Put this script in your project as Assets/Editor/EditPrefab.cs | |
public class EditPrefab { | |
static Object getPrefab(Object selection) { |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
public static class CustomInspectorCreator | |
{ | |
[MenuItem("Assets/Create/Custom Inspector", priority = 81)] | |
static void CreateInsptorEditorClass() | |
{ | |
foreach (var script in Selection.objects) |
Error message: | |
MissingReferenceException: The variable listIcons of HierarchyResources doesn't exist anymore. You probably need to reassign the listIcons variable of the 'HierarchyResources' script in the inspector. UnityEngine.Object.get_name () (at <3b24cc7fa9794ed8ab04312c53e6dedd>:0) Hierarchy2.HierarchyResources+<>c.<GenerateKeyForAssets>b__2_0 (UnityEngine.Texture2D texture2D) (at Assets/Plugins/Hierarchy 2/Editor/HierarchyResources.cs:17) System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.List`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <dab7f68612224ba3ae40f651d44f9d4c>:0) System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <dab7f68612224ba3ae40f651d44f9d4c>:0) System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] |
// Copyright 2019 The Nakama Authors | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
# RimuruDev | |
# https://github.com/RimuruDev | |
**idea/ | |
**.idea/ | |
**.ws/ | |
**.vs/ | |
**/[Bb]uilds/ | |
*/[Tt]rash/ | |
*/[Tt]rash.meta |
// **************************************************************** // | |
// | |
// Copyright (c) RimuruDev. All rights reserved. | |
// Contact me: | |
// - Gmail: rimuru.dev@gmail.com | |
// - GitHub: https://github.com/RimuruDev | |
// - LinkedIn: https://www.linkedin.com/in/rimuru/ | |
// - GitHub Organizations: https://github.com/Rimuru-Dev | |
// | |
// **************************************************************** // |