Skip to content

Material string property analyzer methods#9

Merged
vad710 merged 1 commit into
vad710:masterfrom
Kasperki:feature/MaterialAnalyzer
Oct 16, 2017
Merged

Material string property analyzer methods#9
vad710 merged 1 commit into
vad710:masterfrom
Kasperki:feature/MaterialAnalyzer

Conversation

@Kasperki
Copy link
Copy Markdown

@Kasperki Kasperki commented Oct 1, 2017

Material class has many methods that take either string or int parameter name.
Int parameter should be used for performance.
Use https://docs.unity3d.com/ScriptReference/Shader.PropertyToID.html to convert string to int.


var containingClass = methodSymbol.ContainingType;

// check if the method is the one from UnityEngine.Animator
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a copy+paste issue on the name

Copy link
Copy Markdown
Owner

@vad710 vad710 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small copy+paste issue on a comment, but gonna merge it.

@vad710 vad710 merged commit 6083ff9 into vad710:master Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants