Issue#905115: Unity - (SOLVED) Playable for Looping Animations - How to smoothly restart?

  • I'm trying to turn the Example Playable from the Manual to something that can loop through my set of Animations. But when it reaches the end of the animation and resets the Index to start over, I get a T-Pose for a moment instead of resuming Playback smoothly. I can get around this if I access at Index -1 and set the clip time to 0, but then I receive this error: NullReferenceException: (null)
    UnityEngine.Experimental.Director.Playable.CastTo[AnimationClipPlayable]

    Is this a bug with the...

    (SOLVED) Playable for Looping Animations - How to smoothly restart?

    0 Answers

    Sorry, your answer is too short !

  • Issue#62716: Unity - [Solved] Diagonal movement speed issue

    Hello. I am attempting to move my player up, down, left, and right on a 2d plane. However, I was getting what is apparently a common issue where diagonal movement was compounded by 2 different vectors equalling more than 1. The solution, apparently, is to normalize the vectors and then use those normalized vectors to move the object at the end of the function. The problem I am having now is that I can no longer move up or down, it only allows me to move left or right, and I can't figure out... [Solved] Diagonal movement speed issue

  • Issue#140201: Unity - Multiple animations to a single rig issue

    I got a problem fellas! In my unity project I have imported multiple animations made with the same rig. when I apply these animations to the same base rig they all seem to work fine, but all of the objects from the individual animations (the rig) cannot be deleted.it is starting to take up a lot of room in the project and would it would be much more efficient to just have all the animations applied to one rig without having the other rigs taking up space being unused. I've tried to look up... Multiple animations to a single rig issue

  • Issue#192297: Unity - 2D Hookshot Rotation issue with Raycast (Solved)

    Hi! I'm currently working on a 2D game where the hookshot is one of the main gameplay element/mechanic. The grappling will draw the player toward the end point, a bit like link grappling hook. It's working but it is not precise. There is an issue. The line of the raycast does not have the same angle of the line renderer I'm using as a grappling. I've been looking for what's wrong with this code for a while but can't get my head around it. I'm sure it's a stupid little error that is screwing... 2D Hookshot Rotation issue with Raycast (Solved)

  • Issue#195912: Unity - [Solved] Using Mathf.Sin to create a looping Up and down mouvement

    Hello I would like to scroll a 2D object on Y (up and down) for ever. I thought of Using a Sin.x, with x being the time value (Time.time or Time.deltaTime) Code (CSharp): BgYPosition = Mathf.Sin (Time.time*upAndDownSpeedMultiplier); Vector3 scrollY = new Vector3 (0f,BgYPosition,0f); transform.position= scrollX + scrollY;;  //scrollX being a simple scroll on X not written here   the question is, how do I set this up so the Amplitude (y) of my Sin.curve (so the max + min height of my... [Solved] Using Mathf.Sin to create a looping Up and down mouvement

  • Issue#334690: [SOLVED] How to import C4D Animations Into Unity?

    C4D Ver: r16 Unity Ver: 5+ Is anyone familiar with any possible ways to import a c4d animation with emitter/metaball or basically anything besides rigged bones into Unity? Recently tried to import a flame-looking animation based on EJ Hassenfratz's tutorial http://www.eyedesyn.com/2015/05/07/creating-2d-cartoon-fire-effects-in-cinema-4d/ . I used NitroBake to bake my animation to keyframes and then exported as .fbx, however when I imported it into Unity no animation would show. I... [SOLVED] How to import C4D Animations Into Unity?

  • Issue#430298: Unity - Looping animations while holding a button

    i've just started playing with sprites and animation and i want to know how to make an animation loop while holding a button. for example: my character is using a ray gun and i want him to charge for a more powerful attack (like in megamam) i want to show a looping animation indicating that the playing is charging the attack until he releases the button (let's say the space bar) how do i achieve this? i already know how to make the animation and all of that. i just want to know how to loop... Looping animations while holding a button

  • Issue#583255: Unity - [FPS] Animation looping issue

    Good night everyone, I'm currently having a problem with animating a gun in a First Person Shooter. I'm trying to animate an Aim state, Sprinting state and Shooting state but all of the animations are looping. I already unchecked the "loop time" in the animations and they keep looping while I hold the desire key. Here are the codes and mecanim: View attachment 149513 Sprinting and aim script (I'm using the standard FPS controller from unity): View attachment 149510 ... [FPS] Animation looping issue

  • Issue#585565: Unity - Weird Issue - Solved

    Hi there, this is probably something really stupid am just not seeing but am having a issue. for some reason Back,Left and Down are refusing to register even thou the block rotations are correct I should point out that the blocks are children of another object hence the use of Local rotation. I find it weird that Forward,Right and Up are all working correct. Please help my head hurt. Thanks in advance =) Code (CSharp):         Debug.Log(Block.localRotation.eulerAngles.y);         if... Weird Issue - Solved

  • Issue#629722: Unity - [SOLVED] Tackling the issue of spawning non-player objects from non-player objects.

    I plan to have players spawn non-player objects from other non-player objects into the scene. The issue is that non-player objects do not have Client Authority Owners or specific Connection To Client or Connect to Server. Code (CSharp):     private void AddingNewSplitGroup() {         foreach (GameObject obj in this.selectionManager.selectedObjects) {             NetworkIdentity identity = obj.GetComponent<NetworkIdentity>();             Debug.Log("Calling on CmdSplit()");... [SOLVED] Tackling the issue of spawning non-player objects from non-player objects.

  • Issue#686502: Unity - Issue with a Restart Script?

    I've gone through the forum and found help for a restart script and it works, except that when I restart some of my pickups are missing. I'm trying to completely reset the level, because on later levels I will have enemies who will take away from your count so you have to restart to get them all. Thanks for any help!

  • Issue#713964: Unity - Animator question: need to transition smoothly between animations

    I am making a VR FPS for android (daydream). This question is regarding gun animations. I have made all the animations I need to create realistic gun animations, similar to Crysis (PC video game). I need animation transitions to be absolutely seamless. I am aware that I can use blend trees, but am more comfortable with the simpler solution- to only allow an animation to be played if the last animation has competed. All of my gun animations start and end in the same exact position, across all... Animator question: need to transition smoothly between animations

  • Issue#720967: Unity - [SOLVED] Issue With Displaying Score

    I had the score displaying properly in my game but decided the code was kind of all over the place. So I deleted it all and started making a ScoreManager script but now I'm having errors. Here is the script: Code (CSharp): using UnityEngine; using System.Collections; using UnityEngine.UI;   public class ScoreManager : MonoBehaviour {       public Text scoreText;     public float score = 0f;         // Use this for initialization     void Awake ()     {         scoreText = GetComponent<Text> () as... [SOLVED] Issue With Displaying Score

  • Issue#950445: Unity - solved: Enemy Ray casting attack issue.

    Hello! The issue I am having is when the enemy attacks he kills the player instantly instead of just for the amount of its damage that I have set (you will see this as hitpoint in script). Code (CSharp):     void Attack ()     {         if (distents < attackDistents && distents < stopingDistents && health > 0) {             animationControl.Play ("Attack");             LookAtPlayer ();               StopCoroutine (DamagingTarget());             StartCoroutine (DamagingTarget());             }... solved: Enemy Ray casting attack issue.

  • Issue#1031455: Unity - [Solved] Custom 2D Light System issue

    Hello everyone, I made a custom 2D light system in Unity and as I don't want everything to be affected by the light I made the lightmap before the actual rendering and apply with a custom shader to specified objects. After this step I bumped into the problem that if it is placed inside the OnPreRender function, it is rendered as a really small image (and upside down) into the RenderTexture(see the attached file). From the looks of it looks like a camera problem, but I could not figure out... [Solved] Custom 2D Light System issue

  • Issue#1037848: [Solved] Unity 5.4 Android UI Masking Issue

    Having an issue with the masking shader on android only partially masking the image of a horizontal scroller on the left side. As in image bellow, anybody else encountered this and know of a fix/workaround. View attachment 196468

  • Issue#1043373: Unity - [SOLVED] Issue loading sprite from byte[] into UI Image component

    SOLVED: Changed mip mapping to false like this: Code (CSharp): Texture2D text = new Texture2D(1, 1, TextureFormat.ARGB32, false);   Don't know why but it just works lol I created an application where I download an image, save it in PlayerPrefs as a Base64 String, and then load it into a UI Image component. I have had a success... to a degree. For some reason only the lower left had corner of my sprite will show when it is assigned to the UI Image component through my script, but the... [SOLVED] Issue loading sprite from byte[] into UI Image component

  • Issue#1078705: Unity - Microphone with AudioClip.GetData looping issue.

    Hi Unity people, I have been trying to get a frequency finder to work in Unity. First of all: The frequency finder code has been proven to work on multiple platforms if the input is correct. And the code was double checked with generated buffer values, which all come back fine and on the exact frequency. So now to the problem. I am filling a minimal size Audioclip with Microphone data. I think this is a 1 second buffer if i recall correctly. Every frame i do the following:... Microphone with AudioClip.GetData looping issue.

  • Issue#1097135: Unity - Free Screen melt surface shader inside (issue solved):

    Hey, everyone. Although I am very new to shaders, I managed to figure out how to do a screen melt effect on the game screen to reproduce the game over screen in Castlevania: SOTN. It basically takes a picture of the screen and applies the melting effect to it that then reveals the game over screen underneath. This effect is just like the screen melt effect in doom: For my... Free Screen melt surface shader inside (issue solved):

  • Issue#1173517: The Smart Screen issue hasn't been solved on Unity 5.5

    If I download my game built with Unity 5.5.0b1 form itch.io and then try to run it, I get the following message: It all started with Unity 5.3.6, Unity 5.4 didn't solve it, and is still present on 5.5

  • Issue#1433: Unity - Simply detecting the oculus rift's presence [SOLVED]

    Hi all, Could you please help me understand why the first 'if' clause works but the second one returns nothing? Thanks Code (CSharp):     void Start ()     {         if ( Ovr.Hmd.Detect() > 0 )             Debug.Log ( "Rift detected!" );           if ( OVRManager.display.isPresent && OVRManager.tracker.isPresent )             Debug.Log ( "Both display and tracker are present!" );     }

  • Issue#1438: Unity - 2D 3d Artist , Animations , Conceptart, Music , Sound Design,Programming

    Hello http://laur2000ad.deviantart.com/gallery/>>Portofolio I'm a experienced 2d and 3d artist, animations available for work . I like to be involved in new projects and i come with inovative ideas and design. My expertise are 2d art, conceptart, storyboard , animation and 3d art , characters , enviroment. You can contact me at laur2000ad(around)yahoo.com or Skype laur2000ad. I'm available. My you tube chanel with some animations... 2D 3d Artist , Animations , Conceptart, Music , Sound Design,Programming

  • Issue#1481: Unity - Recommended strategy for game that is playable both online and offline?

    Is it safe to host a game as localhost for offline play? That would be the easiest solution because then I could use the same code offline and online. Would this work on all computers, mobile devices, and consoles? I wasn't sure if it is safe to use localhost in a released game, but I don't know that much about networking. If localhost is the recommended solution, which port should I use? I know I could just disable networking, but that makes the code more complicated because I can't use... Recommended strategy for game that is playable both online and offline?

  • Issue#1600: Unity - Skele: Character Animation Tools, Cutscenes and Animations authoring tools

    Hi, there! Skele is the editor extension to help developers to make skeleton & vertex animation and cutscene right inside UnityEditor; [Online User Manual] Skele: Character Animation Tools speeds up animator/indie's animation workflow in two ways: 1. Enable developers to make / modify character animations in UnityEditor, reduce software switching and tedious import/export/split work; 2. [BETA] Integrate... Skele: Character Animation Tools, Cutscenes and Animations authoring tools

  • Issue#1715: Unity - 2D Level Menu Issue!

    Hello there devs! I am making a 2d game and i just created my level select menu but i seem to be facing a problem.When the player starts, level 1 is automatically unlocked and the player needs to finish it in order to get to level 2.So when level 1 is finished i set in playerprefs the ("UnlockedLevel") parameter to 2 and so on so that the next level unlocks.But, i just realized that if the player pressed on level 1 and then somehow he goes back to the levelmenu scene without finishing it,... 2D Level Menu Issue!

  • Issue#1793: Unity - Vertex/Fragment shader : issue with alpha blending

    Hi. I am having a hard time figuring out an issue I have with a simple alpha blending shader (I had the same kind of issue with alpha test). Here are a few pictures so you get the basic idea : View attachment 170683 View attachment 170684 By simply moving the camera back and force, my shader kind of switch between being displayed and not. These screens are from the Editor, but I have the same issue In Game. However, In Game, another issue comes up :... Vertex/Fragment shader : issue with alpha blending

  • Issue#1839: Unity - iTween issue

    Hi, I got error on the console about this line of code and don't understand how to solve it, anyone can help please ? iTween.ScaleTo(tailleDistance,iTween.Hash("x",15,"y",15,"z",15,"time",1.6,"easetype",iTween.EaseType.easeInOutCubic)); Regards,

  • Issue#2188: Unity - Solved: Debugging Mode, Strange Jump in Exectuion?

    Hello. I'm running the debugger on my game to figure out some errors regarding the opening, saving, and loading of files. When I was stepping through the execution one line at a time, the execution line suddenly jumps to the line after the next break point, skipping the rest of the method and moving onto the next method to be called. The code in-between where the execution line was before and where it jumps to isn't being ran. No uncaught exception is appearing in the console or any other... Solved: Debugging Mode, Strange Jump in Exectuion?

  • Issue#2380: Unity - [SOLVED] The Referenced Script On This Behaviour Is Missing

    I have a Game Object where I store a prefab and a script to use on a GUI button. Basically, you click on the button and the script instantiates a clone of the prefab (and another function that destroy such clone). The script works fine but Unity keeps giving me these error messages: The referenced script on this Behaviour (Game Object 'Capsule') is missing! The referenced script on this Behaviour (Game Object '<null>') is missing! The referenced script on this Behaviour (Game Object... [SOLVED] The Referenced Script On This Behaviour Is Missing

  • Issue#2470: Unity - Random Editor issue..5.3.1.2 | seems VS 2016 is causing editor to turn all warnings into err

    It happens in all my projects, and it only happens after I open VS (double click on script), make a script change, hit save..I can fix 'one' of the errors(warnings), unity re compiles...and Editor comes back to normal..for awhile..then back to that behavior,,, This is blocking my development chi....(I could fix every single warning)... here is the thing..under 'preferences', attach to editor...I can not Turn that Off...EVER.... I unchecked it, restart unity...it is active again...(that is... Random Editor issue..5.3.1.2 | seems VS 2016 is causing editor to turn all warnings into errors..