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 UnityEngine; | |
| using System.Collections; | |
| public class QuadTreeTest : MonoBehaviour { | |
| public class TestObject : IQuadTreeObject{ | |
| private Vector3 m_vPosition; | |
| public TestObject(Vector3 position){ | |
| m_vPosition = position; | |
| } | |
| public Vector2 GetPosition(){ |
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 UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| public static class PivotUtilities | |
| { | |
| [MenuItem("GameObject/Pivot/Create Pivot", false, 0)] | |
| static void CreatePivotObject() | |
| { |
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
| #!/usr/bin/env python | |
| from bs4 import BeautifulSoup | |
| from twilio.rest import TwilioRestClient | |
| import json | |
| import os | |
| import re | |
| import requests | |
| url = 'https://postmates.com/los-angeles' |
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 UnityEngine; | |
| public class Colors | |
| { | |
| // NOTE: The follwing color names come from the CSS3 specification, Section 4.3 Extended Color Keywords | |
| // http://www.w3.org/TR/css3-color/#svg-color | |
| public static readonly Color AliceBlue = new Color32(240,248,255,255); | |
| public static readonly Color AntiqueWhite = new Color32(250,235,215,255); | |
| public static readonly Color Aqua= new Color32(0,255,255,255); |
legacy = UIGraphicsBeginImageContextWithOptions + UIGraphicsEndImageContext
modern = UIGraphicsImageRendererFormat + UIGraphicsImageRenderer
- "modern" w/
prefersExtendedRange = NO- basically the same perf as "legacy"
- probably a good idea to adopt since optimizations will likely be in "modern" first
- "modern" w/
prefersExtendedRange = YES
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'instead ofconst foo = require('foo')to import the package. You also need to put"type": "module"in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)from CommonJS instead ofrequire(…). - Stay on the existing version of the package until you can move to ESM.
Join my stream on Twitch to help build this app! Feel free to add comments about additional features we should explore.
- Structure of the RSS item
- Name of the source
- Article title
- Date
- Excerpt
- Full article