Skip to content

Texture2D.cs "optional parameter" feature #2

@maconbot

Description

@maconbot

Hi Elideb, I was testing out your fork and found an error so just letting you know. I discussed it here:
fehaar#35

...but wasn't sure if that was what you were wanting tested.

Basically,
I am getting a "Feature 'optional parameter' cannot be used it is not part of the 3.0 c# language specification" error. On Texture2D.cs

Total of 7 places...lines 67, 82, 127, 147, 166, 177 and 188.

Anytime something like:
public void SetPixels(Color[] colors, int miplevel = 0)
...occurs

Apparently xbox and windows phone only use .NET 3.0, I am trying the suggestion linked below...just deleting the "= 0"
http://forums.create.msdn.com/forums/p/89928/556025.aspx

This occurs when debugging the FFWD.Unity.Tests XNA project.

Also for some reason it doesn't look like any of the FFWD.Unity.Tests.Scripts>bin>subfolder...DLL's are being dynamically generated. I ran into this in the xbox section of fehaar#41 probably the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions