The GetAngles
method retrieves an Angles
value associated with a specified StringToken
key from the RenderAttributes
collection. If the key does not exist, it returns a default Angles
value provided by the caller.
The GetAngles
method retrieves an Angles
value associated with a specified StringToken
key from the RenderAttributes
collection. If the key does not exist, it returns a default Angles
value provided by the caller.
To use the GetAngles
method, you need to provide a StringToken
that identifies the attribute you want to retrieve and a default Angles
value that will be returned if the attribute is not found.
Example usage:
RenderAttributes attributes = new RenderAttributes();
StringToken key = new StringToken("rotation");
Angles defaultAngles = new Angles(0, 0, 0);
Angles result = attributes.GetAngles(ref key, ref defaultAngles);
RenderAttributes attributes = new RenderAttributes(); StringToken key = new StringToken("rotation"); Angles defaultAngles = new Angles(0, 0, 0); Angles result = attributes.GetAngles(ref key, ref defaultAngles);