最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

scripting - Can someone explain the struct definitions inside struct definitions in maxscript - Stack Overflow

programmeradmin2浏览0评论

So I'm defining a struct but I also want to define a struct within it. This is the basic code I'm using. Several things I don't understand.

  1. Why does the nested struct variable name needs to be the same as as struct name, in this case test2
  2. Why do I need to put a semicolon at the end of the nested struct definition?
testStruct = struct test
(
    var1 = "a",
    test2 = struct test2
    (
        var3 = "c",
        var4 = "d"
    );,
    var2 = "b"
)
发布评论

评论列表(0)

  1. 暂无评论