Skip to content

Commit

Permalink
Merge pull request #89 from SWalls/patch-1
Browse files Browse the repository at this point in the history
Replace WWW with UnityWebRequest in GoSpline.cs
  • Loading branch information
prime31 committed Oct 19, 2020
2 parents 58c3eba + f5eb04e commit 86daa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Plugins/GoKit/properties/splines/GoSpline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ private static List<Vector3> nodeListFromAsset( string pathAssetName )
{
path = Path.Combine( "jar:file://" + Application.dataPath + "!/assets/", pathAssetName );

WWW loadAsset = new WWW( path );
UnityWebRequest loadAsset = new UnityWebRequest( path );
while( !loadAsset.isDone ) { } // maybe make a safety check here

return bytesToVector3List( loadAsset.bytes );
return bytesToVector3List( loadAsset.downloadHandler.data );
}
else if( Application.platform == RuntimePlatform.IPhonePlayer )
{
Expand Down

0 comments on commit 86daa72

Please sign in to comment.