- Base
- Overlay
- Create The Cameras
- Select Render Type
- Select Culling Musk
// Create a non-MonoBehaviour class which displays | |
// messages when a game is loaded. | |
using UnityEngine; | |
class MyClass | |
{ | |
[RuntimeInitializeOnLoadMethod] | |
static void OnRuntimeMethodLoad() | |
{ | |
Debug.Log("After Scene is loaded and game is running"); |
// Author: github/farukcan | |
// Youtube Video: https://www.youtube.com/watch?v=uq8KGcLmKvA | |
// Requires: Pool.cs ( https://gist.github.com/farukcan/3a317afc2737822e29bbb18f919f4381 ) | |
// Requires: OdinInspector (But you can remove odin codes if you don't use it) | |
// Note: You can see place points and infinite line on unity editor | |
// Spec: Change 'seed' to change randomness | |
// Spec: set randomizationScale for place object to little bit random place | |
// Spec: randomizeX,Y,Z for randomization axies | |
// Spec: 'probility' for object placing ratio | |
// Spec: set 'origin' to you camera or your character (for auto place) |
public class Example : MonoBehaviour | |
{ | |
private enum TetrisPiece | |
{ | |
Line, Square, T, J, L, S, Z | |
} | |
RandomBag<TetrisPiece> pieceBag; | |
void Awake() |
SELECT | |
SUM(CASE WHEN KY='daily' THEN COUNT ELSE 0 END) "daily", | |
SUM(CASE WHEN KY='weekly' THEN count ELSE 0 END) "weekly", | |
SUM(CASE WHEN KY='total' THEN count ELSE 0 END) "total" | |
FROM | |
( | |
SELECT 'daily' AS KY ,COUNT(*) FROM PUBLIC."Articles" WHERE "Articles"."createdAt" >= NOW() - '1 day'::INTERVAL | |
UNION | |
SELECT 'weekly' AS KY ,COUNT(*) FROM PUBLIC."Articles" WHERE "Articles"."createdAt" >= NOW() - '1 week'::INTERVAL | |
UNION |
// Author : github.com/farukcan | |
// Pooling Optimization System For Unity3D | |
// Requires: OdinInspector (But you can remove odin codes if you don't use it) | |
// Usage : Pool.GetPool("poolName"); | |
// Usage : Pool.GetPool("poolName").GetPoolObject(); | |
// Note: You can also use it in editor edit mode | |
// Spec: use expandable=true for increase amount of objects | |
// when there is no enought object in pool | |
// Spec: Pooled Objects are defaulty not active (Check: defaultActive) |
# WARNING! This will remove: | |
# - all stopped containers | |
# - all networks not used by at least one container | |
# - all images without at least one container associated to them | |
# - all build cache | |
docker system prune -a |
// Author : github.com/farukcan | |
// Usage : | |
// explosion.Explode(); | |
// or enable explodeOnStart before instantiation | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Explosion : MonoBehaviour |
// Author: github.com/farukcan | |
// Requires: RunB83 - https://github.com/farukcan/unity-utilities | |
// delay.Invoke(1f); | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
public class Delay : MonoBehaviour |
// Author: github.com/farukcan | |
// Usage : | |
// Add 'Child Selector' to objects these you want to sync | |
// childSelectorSync.Sync(); | |
// This command will sync children of two objects with same name | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; |