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 - JyriKilpelainen

Pages: [1]
1
Support / Fatal errors with Unity 4.3.1f1 + 2D Toolkit 2.3.0
« on: December 03, 2013, 08:51:35 pm »
Hi,

I just updated Unity and 2D Toolkit and now I have 36 fatal errors :-(
Here's a screenshot. Any ideas how to fix this?

I went from:
Unity 4.1 > 4.3.1f1
2D Toolkit 2.0 > 2.3.0

For example the first error points to the last line of this:


Code: [Select]
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

[AddComponentMenu("2D Toolkit/Camera/tk2dCamera")]
[ExecuteInEditMode]
/// <summary>
/// Maintains a screen resolution camera.
/// Whole number increments seen through this camera represent one pixel.
/// For example, setting an object to 300, 300 will position it at exactly that pixel position.
/// </summary>
public class tk2dCamera : MonoBehaviour
{
static int CURRENT_VERSION = 1;
public int version = 0;

[SerializeField] private tk2dCameraSettings cameraSettings = new tk2dCameraSettings();

2
Support / Problem with platform specific sprites and scale
« on: November 06, 2012, 07:03:13 pm »
I just installed the latest version of 2D Toolkit (1.80 + patch 1) and started making my scene. The game will have three sets of spritesheets: 1x, 2x and 4x. I setup the 1x spritesheet and made sure that 2x and 4x sprites were in place. After pressing commit all three atlases were created so everything should be ok.

When I create a sprite (say 100x100 in position 0,0), it's correctly positioned in 1x resolution (which is 320x480). But when I increase the Game view size to 640x960, the sprite is not changed or scaled. The gameobject should be scaled to 200x200 and the sprite should be changed to 2x version, right?

I have the "tk2dSystem.CurrentPlatform = "2x";" if else statement in Start function and it correctly prints SD, HD and UD depending on the screen width and height.

Any advices? Does the camera need to be changed?

Pages: [1]