Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Compatible tween systems?

Discussion in 'Windows' started by MrGrey1701, Sep 3, 2013.

  1. MrGrey1701

    MrGrey1701

    Joined:
    May 21, 2013
    Posts:
    5
    Hi, I did a simple test scene comprising of 9 cubes which, at random times a random cube will be selected, it will jump into the air, spin and then land back on the ground - then another cube is selected at random to perform the same. I used itween to spin the cubes but when I built and deployed it Unity threw out the following into it's log on the device when I ran the scene:

    Build from '' branch, version is '4.2.0f4 (38efbd14869d)' (Release build).
    Physical memory: 898 MB, commited memory limit: 380 MB.
    Direct3D:
    Version: Direct3D 11.0 [level 9.3]
    Renderer: Qualcomm Adreno 225 (WDDM v1.2) (ID=0x32303032)
    Vendor: Qualcomm
    VRAM: 96 MB
    Initialize engine version: 4.2.0f4 (38efbd14869d)
    Exception: Exception has been thrown by the target of an invocation.
    InnerException: Specified cast is not valid.
    AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

    at WinRTBridge.MethodTools.InvokeMethod(Object instance, IScriptingMethodWrapper method, Object[] args)

    (Filename: Line: 71)

    Everything else works in the scene as designed, apart from the spin.
    It was suggested to me to try the HOTween tweening system but it will not go through the build stage, giving the following message:

    Error building Player: Exception: Error: type `System.Reflection.Emit.AssemblyBuilder` doesn't exist in target framework.

    I am fairly new to Unity3d so may have done things wrong, but I should point out the same scenes work fine when deployed to an Android device. Is there another tweening system I can use which IS compatible with WP8?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,718
    Did you try attaching a debugger to the project and debug your scripts to see which line exactly fails?
     
  3. MrGrey1701

    MrGrey1701

    Joined:
    May 21, 2013
    Posts:
    5
    Hmm, if I wasn't such a newbie with Unity I would try that, but I really have no idea how to do it :confused:
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,718