- Base
- Overlay
- Create The Cameras
- Select Render Type
- Select Culling Musk
| public class Example : MonoBehaviour | |
| { | |
| private enum TetrisPiece | |
| { | |
| Line, Square, T, J, L, S, Z | |
| } | |
| RandomBag<TetrisPiece> pieceBag; | |
| void Awake() |
| // 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) |
| // 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"); |
Adamlar gistlerimin altına yorum yaparak backlink kasmaya çalışıyor. Çok ilginç ve zararsız bir şekilde çalışıyordur bu yöntem muhtemelen.
Rengin ismini döndürür https://www.thecolorapi.com/id?format=html&hex=742733
Şema Döndürür POST - http://colormind.io/api/ { "model" : "default" }
| using UnityEngine; | |
| using UnityEditor; | |
| /// <summary> | |
| /// Colorful Hierarchy Window Group Header | |
| /// Author: github.com/farukcan | |
| /// Thanks for concept of idea : | |
| /// http://diegogiacomelli.com.br/unitytips-hierarchy-window-group-header | |
| /// Sample GameObject Names: "#red CAMERA" , "#" , "##E7A5F6 Hex" , "# " | |
| /// </summary> |
| // Vehicle vehicle = new Vehicle("Car"); | |
| // vehicle["frame"] = "carbon"; | |
| // vehicle["wheelCount"] = "4"; | |
| class Vehicle | |
| { | |
| private string _vehicleType; | |
| private Dictionary<string, string> _parts = | |
| new Dictionary<string, string>(); | |
| // Constructor |
| // Person person = new Person.Builder().name("Name").surname("Surname").address("Address").build(); | |
| public class Person { | |
| private String name, surname, address; | |
| public Person(Builder builder) { | |
| this.name = builder.name; | |
| this.surname = builder.surname; | |
| this.address = builder.address; |
Bu arada her design paterni için en iyi anlatan makaleleri listeledim.