Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - vkerkez

Pages: [1]
1
Support / Scene Slows down to a crawl after a while
« on: October 08, 2013, 06:02:30 pm »
Hello,

I am working on a small endless 2d runner. In the background I have 2-3 layers with hills. These hills get created offscreen as a prefab (clone) to the right and then slide in throughout the scene. When they reach a certain point off the screen to the left I call Destroy(this.gameobject);  I can see it being destroyed. Everything looks good. After about 2-3 minutes into the game everything begins to slow down to a crawl on my iphone 5. The game starts rendering slower and slower. My first gut feeling tells me I have a memory leak.  Am I doing something wrong? Is there another way of destroying the objects?

On another note when I create collections and commit my png's I get an error that it will leak memory, but the collection is fine. I assumed this might be just in Unity or is fine.

Thank you for any input. If you require any other information I can provide let me know.


2
Support / Rendering Sprite within A box
« on: September 29, 2013, 05:51:08 am »
Hello All,

I am working on something that is driving me crazy. I have a sprite that is 140 wide and 100 tall. I would like to add another sprite or 2 on top of it but within is bounds. Ex: if my object is is 120 tall only 100 will show. I understand there is a clipped sprite however I am looking to animate a large texture 500x500 within my 140 by 100 viewport.  What would be the best way to achieve something like this?

thanks

Pages: [1]