• HiPhish
  • Grid Framework
    • Overview
    • Features
    • Examples
    • Gallery
    • Showcase
    • FAQ
    • News
    • Support

    • Buy Now 35$
  • Open Source
    • NTFS-Clone
    • IPS-Tools
    • roll
    • Newton's Method in C
    • Xeen Tools
    • Wolf3D Extract
    • Game Source Documentation
  • Vim/Nvim plugins
    • Info.vim
    • REPL.nvim
    • Quicklisp.nvim
    • jinja.vim
    • Guix channel
  • Blog
  • About
  • Grid Framework
  • Features
  • Examples
  • Gallery
  • Showcase
  • FAQ
  • News
  • Support
  • Buy
  1. news
  2. tags
  3. how-to
  • Swap variables in Unity

    Published: 2012-08-25

    I’ve decided to go with one HexGrid class and provide enough options. To do this I will need to swap around variables so I can use the same formulae for different cases. I could write the swapping part where it is needed, but then I’d be writing the same thing several times (which is a bad thing to do). Wouldn’t it be better if there was some sort of swapping function? Could that function work for any type of variable? Could it work without needing to reassign variables again? Yes to all of that:

    Continue reading…

  • How to loop through a list and remove items

    Published: 2012-11-16

    The other day I had the following problem: I had a list of Transfoms and I wanted to remove the entries that met a certain condition. This is what I had written:

    Continue reading…

  • Hex Grid introduction video

    Published: 2012-12-17

    I made a short video giving you an overview of hex grids, so you can see them right in action. I’ll make a video on how to extend Grid Framework with your own methods yourself next,

    Continue reading…

  • Unity and properties/accessors

    Published: 2013-02-14

    As mentioned in the previous post I’d like to relate my experience with using properties in Unity and how to make them work properly. Properties are a C# feature and not available in UnityScript (another reason to ditch UnityScript). To help demonstrate what I mean I will be using a “circle” class.

    Continue reading…

  • CheckComponent()

    Published: 2013-07-03

    Here is a quick but handy tip. Recently I found myself needing to reference various components in my script without knowing if they exist. I have to get the component and then check if it exists, and if not add it to prevent null exceptions. Here is what you would write in such a case:

    Continue reading…

  • Whitelisting subdirectories in Git

    Published: 2014-09-09

    After having migrated the development of Grid Framework to Git I wanted to set it up to track only certain sub-directories. I turned out that whitelisting is quite tricky, so here is how I did it for people who might run into the same problem.

    Continue reading…

  • Git packages or embedded packages? Yes.

    Published: 2021-09-11

    In my previous post I wrote about how I maintain the optional extra packages to Grid Framework. Since this point is useful for working with Unity in general I think it’s worth elaborating upon the topic in a separate post.

    Continue reading…

  • « First
  • ‹ Previous
  • 1 of 1
  • Next ›
  • Last »
Subscribe: RSS

Archive

  • 2021 (14)
  • 2019 (3)
  • 2018 (1)
  • 2017 (3)
  • 2016 (16)
  • 2015 (13)
  • 2014 (8)
  • 2013 (19)
  • 2012 (40)

Categories

  • progress (41)
  • release (43)
  • tips (2)
  • organisation (8)
  • misc (1)

Tags

  • old-blog (74)
  • example (7)
  • extension (4)
  • vectrosity (5)
  • how-to (7)
  • rant (3)
  • API-change (3)
  • asset-store (1)
  • spheric (2)
  • coordinate-system (1)
  • v3 (13)
  • packages (5)
  • playmaker (3)

© 2015-2026, licensed under CC BA-SA 4.0

GitHubGitLab