View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.1
- Last updated
- First released
- Unity version
- 5.1.0 or later
- Package size
- 158 KB
- Files
- 10
- Favorites
- 38
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Phlayer
- Price drop
Discount -100%
Previous price
$4.99
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
Phlayer screenshot 1
About this asset
Phlayer makes working with layers attached to game objects fast, safe and automatic (in more ways than one).
Layers in Unity are very powerful, they can be used to differentiate objects about as quickly as possible for a computer. And they are widely used in physics engine queries such as raycasts.
There's a very big problem with layers in Unity without Phlayer however, they are stored internally in an asset which can only be accessed indirectly. Not only is this slower than how it can be, but there can be outdated references which can cause painful bugs to arise, and more.
Phlayer solves this by automatically generating a script containing all of the layers each time they are edited in the Layer Inspector. Here are all the benefits that Phlayer brings:
> Robustness - compiler time errors will be generated when layers have been changed but code has not. There won't be any unexpected bugs to track down
> Performance - integer based operations will generally always be quicker than ones with strings of characters.
> Memory usage - while it makes a small difference, storing multiple 32-bit integers will usually use a little less memory than storing strings of characters.
> Code completion - since the layers are simply fields of a class, Phlayer works with any IDE with code completion
> Peace of mind - knowing that the automatic layer class is always kept in sync, and never requires you to update it ever again
> Sake of principle - it just makes sense that something as simple as layer logic is implemented with the lowest overhead possible because it's dead simple.
> Automated - isn't that worth mentioning again?
Layers in Unity are very powerful, they can be used to differentiate objects about as quickly as possible for a computer. And they are widely used in physics engine queries such as raycasts.
There's a very big problem with layers in Unity without Phlayer however, they are stored internally in an asset which can only be accessed indirectly. Not only is this slower than how it can be, but there can be outdated references which can cause painful bugs to arise, and more.
Phlayer solves this by automatically generating a script containing all of the layers each time they are edited in the Layer Inspector. Here are all the benefits that Phlayer brings:
> Robustness - compiler time errors will be generated when layers have been changed but code has not. There won't be any unexpected bugs to track down
> Performance - integer based operations will generally always be quicker than ones with strings of characters.
> Memory usage - while it makes a small difference, storing multiple 32-bit integers will usually use a little less memory than storing strings of characters.
> Code completion - since the layers are simply fields of a class, Phlayer works with any IDE with code completion
> Peace of mind - knowing that the automatic layer class is always kept in sync, and never requires you to update it ever again
> Sake of principle - it just makes sense that something as simple as layer logic is implemented with the lowest overhead possible because it's dead simple.
> Automated - isn't that worth mentioning again?
From the publisher's Asset Store listing.