https://discussions.unity.com/t/limit-max-width-of-layout-component/575269/72 https://discussions.unity.com/t/setting-maximum-width-of-layout-element-with-content-size-fitter/586475/18
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
tooltipRect.position = Input.mousePosition + (Vector3.right+Vector3.up) * 20; |
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
// css waterdrop https://codepen.io/antoniasymeonidou/pen/QWqpoMJ | |
<div class='center'> | |
<div class='blob'></div></div> | |
body { | |
background: #e0e0e0; | |
} | |
.center { |
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 PrimeTween; | |
using UnityEngine; | |
using UnityEngine.Pool; | |
using UnityUtils; | |
public class DamageNumberSpawner : MonoBehaviour { | |
[SerializeField] WorldSpaceUIDocument uiDocumentPrefab; | |
[SerializeField] float positionRandomness = 0.2f; | |
IObjectPool<WorldSpaceUIDocument> uiDocumentPool; |
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
// https://stackoverflow.com/a/744609/5452781 | |
using System; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
namespace ListResolutions | |
{ |
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
package asus4.videosupportedplugin; | |
import android.media.MediaCodecInfo; | |
import android.media.MediaCodecList; | |
/** | |
* Created by ibu on 2017/03/12. | |
*/ | |
public final class VideoSupportedPlugin { |
Assembly 'Assets/ExternalDependencyManager/Editor/1.2.185/Google.IOSResolver.dll' will not be loaded due to errors..
Install IOS module to your Unity editor.
Error (active) CS0234 The type or namespace name 'Messaging' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharp Assets\Scripts\PushNotifications.cs 23
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
// https://gist.github.com/unitycoder/6b796a2b1392b299854b24cdcd56d305 | |
// run this in your Assets/ folder | |
@echo off | |
echo Scanning for C# files without a namespace or with a namespace containing "unity"... | |
echo. | |
for /r %%f in (*.cs) do ( | |
rem Check if the file contains any "namespace" keyword | |
findstr /i "namespace" "%%f" >nul |
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
//#define TMP_DEBUG_MODE | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using UnityEngine; | |
using UnityEngine.UI; |
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 UnityEngine; | |
using UnityEditor; | |
namespace OddTales.Framework.Core.EditorExtension | |
{ | |
/// <summary> | |
/// Custom inspector for Transform component. Using only DrawDefaultInspector would give different display. | |
/// Script based on Unity wiki implementation : https://wiki.unity3d.com/index.php/TransformInspector | |
/// Buttons to reset, copy, paste Transform values. |
NewerOlder