|
401 | 401 | " }", |
402 | 402 | "", |
403 | 403 | " /**", |
| 404 | + " * @param value {number}", |
| 405 | + " */", |
| 406 | + " setConeLength(value) {", |
| 407 | + " this.spotLight.distance = value;", |
| 408 | + " }", |
| 409 | + "", |
| 410 | + " /**", |
404 | 411 | " * @param coneAngle {number}", |
405 | 412 | " */", |
406 | 413 | " setConeAngle(coneAngle) {", |
|
853 | 860 | "" |
854 | 861 | ] |
855 | 862 | }, |
| 863 | + { |
| 864 | + "type": { |
| 865 | + "value": "SpotLight3D::SpotLight3D::SetConeLength" |
| 866 | + }, |
| 867 | + "parameters": [ |
| 868 | + "Object", |
| 869 | + "=", |
| 870 | + "ConeLength", |
| 871 | + "" |
| 872 | + ] |
| 873 | + }, |
856 | 874 | { |
857 | 875 | "type": { |
858 | 876 | "value": "SpotLight3D::SpotLight3D::SetConeAngle" |
|
1945 | 1963 | } |
1946 | 1964 | ], |
1947 | 1965 | "objectGroups": [] |
| 1966 | + }, |
| 1967 | + { |
| 1968 | + "description": "the cone length of the light. 0 means no limit.", |
| 1969 | + "fullName": "Cone length", |
| 1970 | + "functionType": "ExpressionAndCondition", |
| 1971 | + "name": "ConeLength", |
| 1972 | + "sentence": "the cone length", |
| 1973 | + "events": [ |
| 1974 | + { |
| 1975 | + "type": "BuiltinCommonInstructions::Standard", |
| 1976 | + "conditions": [], |
| 1977 | + "actions": [ |
| 1978 | + { |
| 1979 | + "type": { |
| 1980 | + "value": "SetReturnNumber" |
| 1981 | + }, |
| 1982 | + "parameters": [ |
| 1983 | + "ConeLength" |
| 1984 | + ] |
| 1985 | + } |
| 1986 | + ] |
| 1987 | + } |
| 1988 | + ], |
| 1989 | + "expressionType": { |
| 1990 | + "type": "expression" |
| 1991 | + }, |
| 1992 | + "parameters": [ |
| 1993 | + { |
| 1994 | + "description": "Object", |
| 1995 | + "name": "Object", |
| 1996 | + "supplementaryInformation": "SpotLight3D::SpotLight3D", |
| 1997 | + "type": "object" |
| 1998 | + } |
| 1999 | + ], |
| 2000 | + "objectGroups": [] |
| 2001 | + }, |
| 2002 | + { |
| 2003 | + "fullName": "", |
| 2004 | + "functionType": "ActionWithOperator", |
| 2005 | + "getterName": "ConeLength", |
| 2006 | + "name": "SetConeLength", |
| 2007 | + "sentence": "", |
| 2008 | + "events": [ |
| 2009 | + { |
| 2010 | + "type": "BuiltinCommonInstructions::Standard", |
| 2011 | + "conditions": [], |
| 2012 | + "actions": [ |
| 2013 | + { |
| 2014 | + "type": { |
| 2015 | + "value": "SetNumberVariable" |
| 2016 | + }, |
| 2017 | + "parameters": [ |
| 2018 | + "ConeLength", |
| 2019 | + "=", |
| 2020 | + "Value" |
| 2021 | + ] |
| 2022 | + } |
| 2023 | + ] |
| 2024 | + }, |
| 2025 | + { |
| 2026 | + "type": "BuiltinCommonInstructions::JsCode", |
| 2027 | + "inlineCode": [ |
| 2028 | + "const object = objects[0];\r", |
| 2029 | + "const value = eventsFunctionContext.getArgument(\"Value\");\r", |
| 2030 | + "\r", |
| 2031 | + "object.__spotLightAdapter.setConeLength(value);\r", |
| 2032 | + "" |
| 2033 | + ], |
| 2034 | + "parameterObjects": "Object", |
| 2035 | + "useStrict": true, |
| 2036 | + "eventsSheetExpanded": false |
| 2037 | + } |
| 2038 | + ], |
| 2039 | + "parameters": [ |
| 2040 | + { |
| 2041 | + "description": "Object", |
| 2042 | + "name": "Object", |
| 2043 | + "supplementaryInformation": "SpotLight3D::SpotLight3D", |
| 2044 | + "type": "object" |
| 2045 | + } |
| 2046 | + ], |
| 2047 | + "objectGroups": [] |
1948 | 2048 | } |
1949 | 2049 | ], |
1950 | 2050 | "eventsFunctionsFolderStructure": { |
|
1997 | 2097 | { |
1998 | 2098 | "functionName": "SetDecay" |
1999 | 2099 | }, |
| 2100 | + { |
| 2101 | + "functionName": "ConeLength" |
| 2102 | + }, |
| 2103 | + { |
| 2104 | + "functionName": "SetConeLength" |
| 2105 | + }, |
2000 | 2106 | { |
2001 | 2107 | "functionName": "ConeAngle" |
2002 | 2108 | }, |
|
2134 | 2240 | "group": "Shadow", |
2135 | 2241 | "advanced": true, |
2136 | 2242 | "name": "ShadowCameraFarPlane" |
| 2243 | + }, |
| 2244 | + { |
| 2245 | + "value": "0", |
| 2246 | + "type": "Number", |
| 2247 | + "unit": "Pixel", |
| 2248 | + "label": "Cone length", |
| 2249 | + "description": "0 means no limit.", |
| 2250 | + "group": "Cone", |
| 2251 | + "advanced": true, |
| 2252 | + "name": "ConeLength" |
2137 | 2253 | } |
2138 | 2254 | ], |
2139 | 2255 | "propertiesFolderStructure": { |
|
2154 | 2270 | { |
2155 | 2271 | "propertyName": "ConeAngle" |
2156 | 2272 | }, |
| 2273 | + { |
| 2274 | + "propertyName": "ConeLength" |
| 2275 | + }, |
2157 | 2276 | { |
2158 | 2277 | "propertyName": "Smoothing" |
2159 | 2278 | } |
|
0 commit comments