31-01-2019, 06:42 PM
(This post was last modified: 31-01-2019, 08:29 PM by Mouledoux.
Edit Reason: update
)
Was your issue solved, because I'm having the same issue.
I set the pool to 1024, but once I try to change the length, it gets reset to 256 (a value which I had set it to before)
Iv'e re-initialized the rope after changing, re-imported the asset pack, rested my machine, everything, but it ALWAYS gets reset.
This is the ONLY code where the rope is accessed AT ALL. Nowhere in the rest of the project is the rope ever referenced.
Edit/ Update: re-initializing doesn't do anything anymore. I copied the rope and re-initialized it, and it kept the 1024 pool (yay!) I reinitialized the original one, nothing changed. Still had the small pool, still had the pin constraints, it just didn't do anything...
I set the pool to 1024, but once I try to change the length, it gets reset to 256 (a value which I had set it to before)
Iv'e re-initialized the rope after changing, re-imported the asset pack, rested my machine, everything, but it ALWAYS gets reset.
Code:
if (Input.GetAxis(axis) != 0f)
{
float input = Input.GetAxis(axis) * 1f;// (Mathf.Abs(Input.GetAxis("RIGHT_ROTATION")) + 1);
ropeLength -= input * reelSpeed * Time.deltaTime;
cursor.ChangeLength(ropeLength);
rope.uvScale.y = ropeLength / 4f;
cursor.normalizedCoord = 0.5f;
}
This is the ONLY code where the rope is accessed AT ALL. Nowhere in the rest of the project is the rope ever referenced.
Edit/ Update: re-initializing doesn't do anything anymore. I copied the rope and re-initialized it, and it kept the 1024 pool (yay!) I reinitialized the original one, nothing changed. Still had the small pool, still had the pin constraints, it just didn't do anything...