- cities skylines info https://cslmodding.info/asset/building/
This file contains hidden or 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://forum.unity.com/threads/resulting-screenshot-image-in-game-is-upside-down-and-not-correctly-positioned.848230/ | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| using Unity.Collections; | |
| using System; | |
| using System.IO; | |
| using System.Collections; | |
| public class CaptureScreen : MonoBehaviour | |
| { |
This file contains hidden or 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 TMPro; | |
| using UnityEngine; | |
| [RequireComponent(typeof(TextMeshProUGUI))] | |
| public class BuildDisplayer : MonoBehaviour | |
| { | |
| private TextMeshProUGUI Text; | |
| private void Awake() | |
| { |
This file contains hidden or 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://pastebin.com/4h3CqpYy | |
| // Unity PINVOKE interface for pastebin.com/0Szi8ga6 | |
| // Handles multiple cursors | |
| // License: CC0 | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Runtime.InteropServices; | |
| using System; |
This file contains hidden or 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://forum.unity.com/threads/ar-foundation-using-reference-image-library-during-runtime.1015801/#post-6586150 | |
| using UnityEngine; | |
| using UnityEngine.XR.ARFoundation; | |
| using UnityEngine.XR.ARSubsystems; | |
| public class ImageTrackingLibrarySwitch : MonoBehaviour { | |
| [SerializeField] XRReferenceImageLibrary firstLibrary = null; | |
| [SerializeField] XRReferenceImageLibrary secondLibrary = null; | |
| [SerializeField] ARTrackedImageManager manager = null; |
- Scrollbar is ~1px width and almost fully transparent! Bit hard to use.
- You cannot see channel names (have to know what icon is for each server)
- You cannot search with channel name (hard to find specific channel, especially if you have grouped channels to folders)
- You cannot see which channel has the message!(red notification on notification bar, have to manually mark channels unread one by one, until the red dot disappears)
- Cannot double click user to open chat (instead, have to type that into that small box)
- Searching messages has buttons "new" and "old" what does that mean? and why it searches again for same results? maybe it means sort by age? dunno.
- Quite difficult to find hangup call/close meeting button always, same for screen sharing on/off
- If you enter channel from weblink to discord desktop, you cannot see which server you are int (from left side server list!) or maybe it happens if you cannot join any more servers, there is no error message..
- Cannot copy your username in set
This file contains hidden or 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.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A simple free camera to be added to a Unity game object. | |
| /// | |
| /// Keys: |
This file contains hidden or 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
| // fix window resolution/aspect ratio for fullscreen, and revert back to previous window resolution after exit fullscreen | |
| // because if user has resizable window, then going full screen with alt+tab keeps that window aspect ratio (causes letterboxing, black borders) | |
| // this script takes highest available monitor resolution for full screen mode | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace UnityLibrary | |
| { |
This file contains hidden or 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
| // find line | |
| Vector3 normal = Vector3.up; | |
| // replace with | |
| Vector3 normal = realCamera.transform.position.y < 0 ? -Vector3.up : Vector3.up; |
This file contains hidden or 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://forum.unity.com/threads/how-to-get-unity3d-game-exe-window-handle.377663/#post-6798698 | |
| [DllImport("user32.dll", EntryPoint = "SetWindowPos")] | |
| public static extern IntPtr SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int Y, int cx, int cy, int wFlags); | |
| [DllImport("user32.dll", EntryPoint = "SetWindowText")] | |
| public static extern bool SetWindowText(System.IntPtr hwnd, System.String lpString); |