Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/iopaths.git#upm

README Markdown

Copy this to your project's README.md

Style
Preview
pkglnk installs badge
## Installation

Add **IO Paths** to your Unity project via Package Manager:

1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/iopaths.git#upm
```

[![pkglnk](https://www.pkglnk.dev/badge/iopaths.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/iopaths)

README

using IOPaths;

AbsoluteFilePath persistentDataCache =
		( (AbsoluteDirectoryPath) Application.persistentDataPath )
		.Combine( (DirectoryName) "Cache" )
		.Combine( (DirectoryName) "001" )
		.Combine( (FileName) "cached.bytes" );

if( persistentDataCache.Exists() )
{
	byte[] oldBytes = persistentDataCache.ReadAllBytes();
	Debug.Log($"old cache was {oldBytes.Length} bytes long");
	persistentDataCache.Delete();
}
persistentDataCache.WriteAllBytes(
    new byte[]{0,1,2,4,8,16,32,64,128,255}
);

type description
FileName file name
DirectoryName directory name
AbsoluteFilePath absolute file path
AbsoluteDirectoryPath absolute directory path
ResourceFilePath /Assets/Resources-relative file path
ResourceDirectoryPath /Assets/Resources-relative directory path
AssetsFilePath /Assets-relative file path

"com.andrewraphaellukasik.iopaths": "https://github.com/andrew-raphael-lukasik/IOPaths.git#upm"

Comments

No comments yet. Be the first!