Browsing articles tagged with " array"
Mar
2
2019

Create Gradient Texture From Array of Colors

Small tool to generate gradient Texture2D from array of colors. (Note: maximum colors is 8, since it uses unity Gradient internally ( https://docs.unity3d.com/ScriptReference/Gradient.html ) Source:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Texture/GradientTextureMaker.cs Example usage script: (attach script to some 3d object)https://gist.github.com/unitycoder/f7ea9019bb67b7042efbd08f0f4fa785

Apr
14
2013

Heightmap Chunk

Saw this in the forums (simpleminecraft), sounds interesting!. Havent looked at their sources yet, but made own test version first.. Current version: – Single chunk.. – Chunk creator (random or perlin) – 2D array for grid heights – 3D array for grid cell types – […]

Jan
2
2012

Precalculated Sin Cos Arrays

In the old days (blitz basic, qbasic..) these lookup tables were quite useful! Download test scene: (moving sphere..Note! saved with Unity3D v3.5) mSinCosTables.unitypackage Source: (javascript, attach it to some object to see it moving..)

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.