Engines/FlatRedBallXNA/FlatRedBall.Content/ModelAnimation/AnimationProcessor.cs
/// <summary>
/// Gets the path of the model.
/// </summary>
/// <param name="animationId">The identity of the AnimationContent object.</param>
/// <returns>The path of the model file.</returns>
Gets the path of the model.
Gets the path of the model .
protected virtual string GetModelFilePath(ContentIdentity animationId)
        {
            string dir = Path.GetDirectoryName(animationId.SourceFilename);
            string animName = Path.GetFileNameWithoutExtension(animationId.SourceFilename);
            if (animName.Contains("_"))
            {
                string modelName = animName.Split('_')[0];
                return Path.GetFullPath(dir + @"\" + modelName + ".fbx");
            }
            else
            {
                return null;
            }
        }
protected virtual string GetModelFilePath ( ContentIdentity animationId ) { string dir = Path . GetDirectoryName ( animationId . SourceFilename ) ; string animName = Path . GetFileNameWithoutExtension ( animationId . SourceFilename ) ; if ( animName . Contains ( " " ) ) { string modelName = animName . Split ( ' ' ) [ 0 ] ; return Path . GetFullPath ( dir + @"\" + modelName + " " ) ; } else { return null ; } }
Gets the path of the model.
Gets the path of the model .
The path of the model file.
The path of the model file .
animationId
ContentIdentity
The identity of the AnimationContent object.
The identity of the AnimationContent object .